Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,13 @@ Special read-only attributes
A cell object has the attribute ``cell_contents``.
This can be used to get the value of the cell, as well as set the value.

Only names that are actually referenced in the function body are
listed in :attr:`~codeobject.co_freevars` and therefore have
entries in ``function.__closure__``. Variables defined in an
enclosing scope but never referenced inside the function do not
appear in the closure.


Special writable attributes
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down
Loading