8000 Document vars behavior when __dict__ is missing (GH-21466) (GH-21939) · python/cpython@d7cd116 · GitHub
[go: up one dir, main page]

Skip to content

Commit d7cd116

Browse files
Document vars behavior when __dict__ is missing (GH-21466) (GH-21939)
(cherry picked from commit 802726a) Co-authored-by: Andre Delfino <adelfino@gmail.com>
1 parent 72d5ddb commit d7cd116

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Doc/library/functions.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1720,6 +1720,9 @@ are always available. They are listed here in alphabetical order.
17201720
locals dictionary is only useful for reads since updates to the locals
17211721
dictionary are ignored.
17221722

1723+
A :exc:`TypeError` exception is raised if an object is specified but
1724+
it doesn't have a :attr:`~object.__dict__` attribute (for example, if
1725+
its class defines the :attr:`~object.__slots__` attribute).
17231726

17241727
.. function:: zip(*iterables)
17251728

0 commit comments

Comments
 (0)
0