summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-06-18 03:57:31 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-06-18 03:57:31 (GMT)
commitd51b0f218837e11ddabe3a172cc760cb2a16ff71 (patch)
tree542067299338ab8d6a9cfad4db17e37e79733888 /Doc/tutorial
parenteb063011ab6628d45cffab2f41947866b0d00e8d (diff)
downloadcpython-d51b0f218837e11ddabe3a172cc760cb2a16ff71.zip
cpython-d51b0f218837e11ddabe3a172cc760cb2a16ff71.tar.gz
cpython-d51b0f218837e11ddabe3a172cc760cb2a16ff71.tar.bz2
Issue #24314: Add links for general attributes like __name__, __dict__
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/classes.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/tutorial/classes.rst b/Doc/tutorial/classes.rst
index b1f3f00..963581b 100644
--- a/Doc/tutorial/classes.rst
+++ b/Doc/tutorial/classes.rst
@@ -905,8 +905,8 @@ Examples::
.. rubric:: Footnotes
.. [#] Except for one thing. Module objects have a secret read-only attribute called
- :attr:`__dict__` which returns the dictionary used to implement the module's
- namespace; the name :attr:`__dict__` is an attribute but not a global name.
+ :attr:`~object.__dict__` which returns the dictionary used to implement the module's
+ namespace; the name :attr:`~object.__dict__` is an attribute but not a global name.
Obviously, using this violates the abstraction of namespace implementation, and
should be restricted to things like post-mortem debuggers.