Message147137
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 |
|
Date |
User |
Action |
Args |
2011-11-06 03:21:38 | eli.bendersky | set | recipients:
+ eli.bendersky, docs@python |
2011-11-06 03:21:38 | eli.bendersky | set | messageid: <1320549698.37.0.353874550901.issue13352@psf.upfronthosting.co.za> |
2011-11-06 03:21:37 | eli.bendersky | link | issue13352 messages |
2011-11-06 03:21:37 | eli.bendersky | create | |
|