[docs] Document bug?

Jussi Peltonen peltoju at gmail.com
Fri Nov 4 06:42:04 CET 2011


Hello,

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


More information about the docs mailing list