[issue29005] Possibly incorrect description about method objects

2016-12-18 Thread R. David Murray
R. David Murray added the comment: Thanks, woo and Jim. -- resolution: -> fixed stage: -> resolved status: open -> closed type: -> behavior ___ Python tracker ___

[issue29005] Possibly incorrect description about method objects

2016-12-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6f89f5eb4422 by R David Murray in branch '3.5': #29005: clarify terminology in tutorial 'method' discussion. https://hg.python.org/cpython/rev/6f89f5eb4422 New changeset 7314e08dc907 by R David Murray in branch '3.6': Merge: #29005: clarify terminol

[issue29005] Possibly incorrect description about method objects

2016-12-18 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Agreed, attached amended patch -- Added file: http://bugs.python.org/file45957/method_obj35_2.patch ___ Python tracker ___ _

[issue29005] Possibly incorrect description about method objects

2016-12-18 Thread R. David Murray
R. David Murray added the comment: I think it is better to say "the method's instance object", because in the final paragraph we discuss the fact that each method object has an associated instance object. The instance object isn't magically acquired from elsewhere and added, it is added becau

[issue29005] Possibly incorrect description about method objects

2016-12-18 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: I've added a little patch that takes care of this. I didn't add "method's instance object" in the second substitution because it seems evident by the previous sentences. -- keywords: +patch Added file: http://bugs.python.org/file45955/method_ob

[issue29005] Possibly incorrect description about method objects

2016-12-18 Thread R. David Murray
R. David Murray added the comment: Given the (clearer) explanation in the final paragraph of that section, I think the bare 'object' in the first couple paragraphs should be replaced by 'instance object'. There are multiple objects involved, and that will disambiguate which one is being refer

[issue29005] Possibly incorrect description about method objects

2016-12-18 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: I see. I'd agree that `instance object` is probably better here. Let's see what others think. -- ___ Python tracker ___ ___

[issue29005] Possibly incorrect description about method objects

2016-12-18 Thread woo yoo
woo yoo added the comment: Maybe the last "method's" should be changed into "class instance" -- ___ Python tracker ___ ___ Python-bugs

[issue29005] Possibly incorrect description about method objects

2016-12-18 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Seems right to me, this is also stated clearly in the reference manual: > When an instance method object is called, the underlying function (__func__) > is called, inserting the class instance (__self__) in front of the argument > list. For instance, w

[issue29005] Possibly incorrect description about method objects

2016-12-18 Thread woo yoo
New submission from woo yoo: "In general, calling a method with a list of n arguments is equivalent to calling the corresponding function with an argument list that is created by inserting the method’s object before the first argument." Is above description right? The link is https://docs.pyt