Issue #24314: Fix doc links for general attributes like __name__, __dict__

This commit is contained in:
Martin Panter 2016-06-18 03:57:31 +00:00
parent 886a5f352f
commit bae5d81f5d
14 changed files with 69 additions and 64 deletions

View file

@ -951,8 +951,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.