On 2/4/2011 5:35 AM Bill Felton said...

Um, not quite correct -- methods *without a specified return value* always 
return self, that is, the object which executed the method.

Um, no.  They return None.

>>> class Test:
...   def __init__(self):pass
...   def test(self):pass
...
>>> a=Test().test()
>>> a
>>> print a
None
>>>

Emile

_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to