This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: an error in the documentation of descriptor
Type: Stage: resolved
Components: Documentation Versions: Python 3.8, Python 3.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: rhettinger Nosy List: 2353381a, docs@python, rhettinger
Priority: Keywords:

Created on 2021-03-26 11:50 by 2353381a, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg389545 - (view) Author: 江杉 (2353381a) Date: 2021-03-26 11:50
In this section 
 https://docs.python.org/3.8/howto/descriptor.html#functions-and-methods , there is an error:

the output of CMD 'd.f.__func__' should be same as the output of 'D.__dict__['f']'. Here the former should be '<function D.f at 0x00C45070>', but not '<function D.f at 0x1012e5ae8>'
msg389553 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2021-03-26 15:33
Thanks for the report.

This has already been fixed for the 3.9 release and later:

https://docs.python.org/3.9/howto/descriptor.html#functions-and-methods

It was minor enough to not warrant a backport to 3.8.
History
Date User Action Args
2022-04-11 14:59:43adminsetgithub: 87798
2021-03-26 15:33:41rhettingersetstatus: open -> closed
versions: - Python 3.9, Python 3.10
messages: + msg389553

resolution: out of date
stage: resolved
2021-03-26 15:27:54rhettingersetpriority: normal ->
assignee: docs@python -> rhettinger
2021-03-26 12:01:52xtreaksetnosy: + rhettinger
2021-03-26 11:50:202353381acreate