Document vars behavior when __dict__ is missing (GH-21466) (GH-21939)

(cherry picked from commit 802726acf6)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
This commit is contained in:
Miss Islington (bot) 2020-08-22 11:55:00 -07:00 committed by GitHub
parent 72d5ddb930
commit d7cd1164c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 locals dictionary is only useful for reads since updates to the locals
dictionary are ignored. 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) .. function:: zip(*iterables)