Assigning to self

Frans Englich frans.englich at telia.com
Mon Jan 17 19:52:00 CET 2005


On Monday 17 January 2005 18:45, Frans Englich wrote:

> The line 'self = me'(scary..) doesn't really
> work for the attribute attr; the attribute exists on line 21, but it fails
> when yo() tries to access it.

Typo; line 21 is yo(). I ment line 18, the print statement in __init__.


Cheers,

		Frans




More information about the Python-list mailing list