Skip to content

Commit

Permalink
pythongh-113625: Align object addresses in the Descriptor HowTo Guide (
Browse files Browse the repository at this point in the history
…pythonGH-113894)

(cherry picked from commit 901a971)

Co-authored-by: Raymond Hettinger <[email protected]>
  • Loading branch information
rhettinger authored and miss-islington committed Jan 10, 2024
1 parent 59a7b94 commit 49eda2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/howto/descriptor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down

0 comments on commit 49eda2b

Please sign in to comment.