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

Skip to content

Commit 2dad5ca

Browse files
committed
Add a couple of missing versionadded tags in the inspect module docs
1 parent e0f0465 commit 2dad5ca

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Doc/library/inspect.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,8 @@ but avoids executing code when it fetches attributes.
587587
that raise AttributeError). It can also return descriptors objects
588588
instead of instance members.
589589

590+
.. versionadded:: 3.2
591+
590592
The only known case that can cause `getattr_static` to trigger code execution,
591593
and cause it to return incorrect results (or even break), is where a class uses
592594
:data:`~object.__slots__` and provides a `__dict__` member using a property or
@@ -621,6 +623,7 @@ code execution::
621623
# have to do
622624
pass
623625

626+
624627
Current State of a Generator
625628
----------------------------
626629

@@ -640,5 +643,4 @@ generator to be determined easily.
640643
GEN_SUSPENDED: Currently suspended at a yield expression.
641644
GEN_CLOSED: Execution has completed.
642645

643-
644-
646+
.. versionadded:: 3.2

0 commit comments

Comments
 (0)