[issue20805] Error in 3.3 Tutorial

2014-02-28 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue20805] Error in 3.3 Tutorial

2014-02-28 Thread Peter Otten
Peter Otten added the comment: No, that's not an error. Given a class MyClass and an instance x of that class >>> class MyClass: ... def f(self): return 42 ... >>> x = MyClass() you usually invoke a method like so: >>> x.f() 42 But it is also possible to break that in two steps (1) get th

[issue20805] Error in 3.3 Tutorial

2014-02-28 Thread Gene Anderson
Gene Anderson added the comment: I failed to mention that the associated web address for the documentation is: http://docs.python.org/3.3/tutorial/classes.html#method-objects -- ___ Python tracker

[issue20805] Error in 3.3 Tutorial

2014-02-28 Thread Gene Anderson
New submission from Gene Anderson: In the tutorial for Python 3.3 the content for 9.3.4 Method Objects seems to have an error. In the following lines: xf = x.f while True: print(xf()) ... it seems to me that based on the x object's method f(), the command should be print(x.f()) At