[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2019-08-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: This was fixed a long time ago. -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2017-09-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: I've just updated the section on unbound methods. I'll be working on a number of other improvements over the next few weeks and will incorporate the suggested changes where appropriate. -- ___ Python tracker

[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2017-05-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I think it is misleading, because a class is actually an object. This is only misleading *after* you know all the interesting details about Python and metaclasses. Prior to that, it is a reasonable and important distinction that I don't want to get lost

[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2017-05-08 Thread Marco Buttu
Marco Buttu added the comment: I also noticed that the howto differentiates between objects and classes: "The details of invocation depend on whether obj is an object or a class." I think it is misleading, because a class is actually an object. IMHO is better to differentiate between classes

[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2017-05-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: I will have a chance to work on this before long. -- ___ Python tracker ___

[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2017-05-06 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- versions: +Python 3.7 -Python 3.4 ___ Python tracker ___

[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2017-05-06 Thread Martin Panter
Martin Panter added the comment: Raymond I suggest you unassign this and let others work on it. -- stage: patch review -> needs patch ___ Python tracker

[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2016-10-03 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- nosy: +Mariatta ___ Python tracker ___ ___

[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2016-07-08 Thread Eryk Sun
Eryk Sun added the comment: I'm surprised it's not documented for the types module: https://docs.python.org/3.5/library/types.html#types.MethodType At least the docstring has the parameters: >>> print(types.MethodType.__doc__) method(function, instance) Create a bound

[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2016-07-08 Thread Daniel Holth
Daniel Holth added the comment: This bit me also. Is there other documentation for how many arguments MethodType() should take? -- nosy: +dholth ___ Python tracker

[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2015-10-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'll update this document to reflect the current state of the world. -- ___ Python tracker ___

[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2015-10-19 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___

[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2015-10-18 Thread Martin Panter
Martin Panter added the comment: Thanks for the patch. I left a few comments on the code review. I think the class is meant to represent a real function object, not a wrapper. And it would be good to update the following paragraphs about unbound methods. Also, it looks like the rest of that

[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2015-10-18 Thread Martin Panter
Martin Panter added the comment: Also further up the page, “unbound methods . . . are . . . based on the descriptor protocol” is probably not really correct or useful. Issue 23702 is already open about mentioning unbound methods. -- ___ Python

[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2015-10-18 Thread David Becher
New submission from David Becher: Since Python 3 removed unbound methods, I found some references using the old terminology in this HowTo about descriptors (https://docs.python.org/3/howto/descriptor.html). Also, since unbound methods have been removed, the function call types.MethodType now

[issue25435] Wrong function calls and referring to not removed concepts in descriptor HowTo (documentation)

2015-10-18 Thread SilentGhost
Changes by SilentGhost : -- nosy: +rhettinger ___ Python tracker ___ ___