[issue41427] howto/descriptor.rst unnecessarily mentions method.__class__

2020-07-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: The origin of the error was an incorrect update from Python 2 semantics where the class was exposed as an attribute: Python 2.7.17 (v2.7.17:c2f86d86e6, Oct 19 2019, 16:24:34) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright",

[issue41427] howto/descriptor.rst unnecessarily mentions method.__class__

2020-07-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Good catch. Thanks for the report. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41427] howto/descriptor.rst unnecessarily mentions method.__class__

2020-07-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list

[issue41427] howto/descriptor.rst unnecessarily mentions method.__class__

2020-07-28 Thread Yonatan Goldschmidt
Change by Yonatan Goldschmidt : -- keywords: +patch pull_requests: +20810 stage: -> patch review pull_request: https://github.com/python/cpython/pull/21665 ___ Python tracker

[issue41427] howto/descriptor.rst unnecessarily mentions method.__class__

2020-07-28 Thread Yonatan Goldschmidt
New submission from Yonatan Goldschmidt : In Doc/howto/descriptor.rst: # Internally, the bound method stores the underlying function, # the bound instance, and the class of the bound instance. >>> d.f.__func__ >>> d.f.__self__ <__main__.D object at 0x1012e1f98> >>>