Sorry for the poor title. I really have no idea how to describe this to a search engine to find out how it works.
class MyClass(object):
def __init__(self, contents=None):
self.contents = contents
Specifically, the contents=None
parameter.
I've been studying Python for about 2 months now, and that part semi-blows my mind. Any help or redirection to a similar, previously asked question will be very appreciated.