Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4a74a9a

Browse files
committed
Issue #21205: Complete the "versionchanged" note in inspect documentation
1 parent 7db27c8 commit 4a74a9a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Doc/library/inspect.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,9 @@ attributes:
181181

182182
.. versionchanged:: 3.5
183183

184-
Add ``__qualname__`` attribute to generators.
184+
Add ``__qualname__`` attribute to generators. The ``__name__`` attribute of
185+
generators is now set from the function name, instead of the code name, and
186+
it can now be modified.
185187

186188

187189
.. function:: getmembers(object[, predicate])

0 commit comments

Comments
 (0)