This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eli.bendersky
Recipients docs@python, eli.bendersky
Date 2011-11-06.03:21:37
SpamBayes Score 0.0016463163
Marked as misclassified No
Message-id <1320549698.37.0.353874550901.issue13352@psf.upfronthosting.co.za>
In-reply-to
Content
User report on the docs@ list:

-----

http://docs.python.org/tutorial/classes.html#instance-objects

I think the "counter" attribute is mentioned for the first time in the
example code, not "in Instance of MyClass created above", i.e. class
MyClass does not contain "counter" attribute.

"x.counter = 1
while x.counter < 10:
   x.counter = x.counter * 2
print x.counter
del x.counter"

Best Regards,
Jussi Peltonen
History
Date User Action Args
2011-11-06 03:21:38eli.benderskysetrecipients: + eli.bendersky, docs@python
2011-11-06 03:21:38eli.benderskysetmessageid: <1320549698.37.0.353874550901.issue13352@psf.upfronthosting.co.za>
2011-11-06 03:21:37eli.benderskylinkissue13352 messages
2011-11-06 03:21:37eli.benderskycreate