Hmm, apparently python doesn't care about whitespace in method calls or
attribute access:

class person:
    def __init__(self):
        self.name ="jim"
    def hi(self):
        print("hello")

>>> guy = person()
>>> guy    .   name
'jim'
>>> guy   .    hi()
hello

That at least explains that part of my question. I never knew this, although
it's pretty ugly, so I guess it's fairly useless information. Thanks for the
guess, Alan. That seems reasonable.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to