diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-08-22 19:15:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-22 19:15:29 (GMT) |
commit | 08045391a7aa87d4fbd3e8ef4c852c2fa4e81a8a (patch) | |
tree | 797d2bc700d8b7f6b4205fffa2e14202d8b7b877 /Doc/library/functions.rst | |
parent | e94d5db5125059b253c2fa8abddb2228053be9e8 (diff) | |
download | cpython-08045391a7aa87d4fbd3e8ef4c852c2fa4e81a8a.zip cpython-08045391a7aa87d4fbd3e8ef4c852c2fa4e81a8a.tar.gz cpython-08045391a7aa87d4fbd3e8ef4c852c2fa4e81a8a.tar.bz2 |
Document vars behavior when __dict__ is missing (GH-21466) (GH-21941)
(cherry picked from commit 802726acf6048338394a6a4750835c2cdd6a947b)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Diffstat (limited to 'Doc/library/functions.rst')
-rw-r--r-- | Doc/library/functions.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index 8cf755a..c31efa9 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1714,6 +1714,9 @@ are always available. They are listed here in alphabetical order. locals dictionary is only useful for reads since updates to the locals dictionary are ignored. + A :exc:`TypeError` exception is raised if an object is specified but + it doesn't have a :attr:`~object.__dict__` attribute (for example, if + its class defines the :attr:`~object.__slots__` attribute). .. function:: zip(*iterables) |