diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-08-22 18:55:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-22 18:55:00 (GMT) |
commit | d7cd1164c18dbf78380ce4c95bf46c7bb0ac0bb7 (patch) | |
tree | d47175ca5b8c055a365061fcfa898fad9ce571de | |
parent | 72d5ddb930030c16851a98384b053bb99d6cd6f2 (diff) | |
download | cpython-d7cd1164c18dbf78380ce4c95bf46c7bb0ac0bb7.zip cpython-d7cd1164c18dbf78380ce4c95bf46c7bb0ac0bb7.tar.gz cpython-d7cd1164c18dbf78380ce4c95bf46c7bb0ac0bb7.tar.bz2 |
Document vars behavior when __dict__ is missing (GH-21466) (GH-21939)
(cherry picked from commit 802726acf6048338394a6a4750835c2cdd6a947b)
Co-authored-by: Andre Delfino <adelfino@gmail.com>
-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 d0f6072..b88c56e 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1720,6 +1720,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) |