In django.core.management
on row 133 there is a class defined with the following code:
class ManagementUtility(object):
"""
Encapsulates the logic of the django-admin and manage.py utilities.
"""
def __init__(self, argv=None):
self.argv = argv or sys.argv[:]
self.prog_name = os.path.basename(self.argv[0])
self.settings_exception = None
...and so on.
- How can the variable
self.argv
be set to an expression which containsor
? - How is the statement
self.argv = argv or sys.argv[:]
evaluated?