summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMichael Foord <michael@python.org>2011-03-15 23:22:19 (GMT)
committerMichael Foord <michael@python.org>2011-03-15 23:22:19 (GMT)
commited1fce2ee5c1e8c44d5c1500962f2f509ffb37d6 (patch)
treee2fc9ec96edfacee575bcf35850df127bbd0ac70 /Doc
parent55afb1a2630314a49277618af3e198db677d9135 (diff)
parentdcebe0f2dca40a22654c5f09ce1bd141419ea8d3 (diff)
downloadcpython-ed1fce2ee5c1e8c44d5c1500962f2f509ffb37d6.zip
cpython-ed1fce2ee5c1e8c44d5c1500962f2f509ffb37d6.tar.gz
cpython-ed1fce2ee5c1e8c44d5c1500962f2f509ffb37d6.tar.bz2
merge 3.2
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/inspect.rst9
1 files changed, 3 insertions, 6 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index 754f728..7a57a0d 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -589,13 +589,10 @@ but avoids executing code when it fetches attributes.
that raise AttributeError). It can also return descriptors objects
instead of instance members.
- .. versionadded:: 3.2
+ If the instance `__dict__` is shadowed by another member (for example a
+ property) then this function will be unable to find instance members.
-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
-descriptor. If you find other cases please report them so they can be fixed
-or documented.
+ .. versionadded:: 3.2
`getattr_static` does not resolve descriptors, for example slot descriptors or
getset descriptors on objects implemented in C. The descriptor object