mirror of
https://github.com/python/cpython.git
synced 2026-01-04 06:22:20 +00:00
[3.12] gh-113625: Align object addresses in the Descriptor HowTo Guide (GH-113894) (#113922)
gh-113625: Align object addresses in the Descriptor HowTo Guide (GH-113894)
(cherry picked from commit 901a971e16)
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
This commit is contained in:
parent
59a7b9495b
commit
3fc45e6c4e
1 changed files with 1 additions and 1 deletions
|
|
@ -1240,7 +1240,7 @@ instance::
|
|||
<function D.f at 0x00C45070>
|
||||
|
||||
>>> d.f.__self__
|
||||
<__main__.D object at 0x1012e1f98>
|
||||
<__main__.D object at 0x00B18C90>
|
||||
|
||||
If you have ever wondered where *self* comes from in regular methods or where
|
||||
*cls* comes from in class methods, this is it!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue