diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2010-11-21 03:55:53 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2010-11-21 03:55:53 (GMT) |
commit | 2dad5cade41eb8ba9880427f313ac2f1d2e1a505 (patch) | |
tree | 145c4f44afb90bd00193323549f905ffd8ebc1e0 /Doc/library | |
parent | e0f04659cd717a031b42dcfd43ca07824b24f9b2 (diff) | |
download | cpython-2dad5cade41eb8ba9880427f313ac2f1d2e1a505.zip cpython-2dad5cade41eb8ba9880427f313ac2f1d2e1a505.tar.gz cpython-2dad5cade41eb8ba9880427f313ac2f1d2e1a505.tar.bz2 |
Add a couple of missing versionadded tags in the inspect module docs
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/inspect.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index 810a95b..f81e157 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -587,6 +587,8 @@ but avoids executing code when it fetches attributes. that raise AttributeError). It can also return descriptors objects instead of instance members. + .. versionadded:: 3.2 + The only known case that can cause `getattr_static` to trigger code execution, and cause it to return incorrect results (or even break), is where a class uses :data:`~object.__slots__` and provides a `__dict__` member using a property or @@ -621,6 +623,7 @@ code execution:: # have to do pass + Current State of a Generator ---------------------------- @@ -640,5 +643,4 @@ generator to be determined easily. GEN_SUSPENDED: Currently suspended at a yield expression. GEN_CLOSED: Execution has completed. - - + .. versionadded:: 3.2 |