summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorWeipeng Hong <hongweichen8888@sina.com>2021-11-30 18:23:13 (GMT)
committerGitHub <noreply@github.com>2021-11-30 18:23:13 (GMT)
commitaf8c8caaf5e07c02202d736a31f6a2f7e27819b8 (patch)
treefaffacba8a6e1fe2d1b6dffeaba18242526e2020 /Misc
parent4b97d974ecca9cce532be55410fe851eb9fdcf21 (diff)
downloadcpython-af8c8caaf5e07c02202d736a31f6a2f7e27819b8.zip
cpython-af8c8caaf5e07c02202d736a31f6a2f7e27819b8.tar.gz
cpython-af8c8caaf5e07c02202d736a31f6a2f7e27819b8.tar.bz2
bpo-30533:Add function inspect.getmembers_static that does not call properties or dynamic properties. (#20911)
* Add function inspect.getmembers_static that does not call properties or dynamic properties. * update _getmembers args * Update Misc/NEWS.d/next/Library/2020-06-16-18-00-56.bpo-30533.StL57t.rst Co-authored-by: Itamar Ostricher <itamarost@gmail.com> * Update Lib/inspect.py Co-authored-by: Itamar Ostricher <itamarost@gmail.com> * Removes the copy pasted doc string Co-authored-by: Itamar Ostricher <itamarost@gmail.com> Co-authored-by: Dino Viehland <dinoviehland@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2020-06-16-18-00-56.bpo-30533.StL57t.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-06-16-18-00-56.bpo-30533.StL57t.rst b/Misc/NEWS.d/next/Library/2020-06-16-18-00-56.bpo-30533.StL57t.rst
new file mode 100644
index 0000000..bc4523f
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-06-16-18-00-56.bpo-30533.StL57t.rst
@@ -0,0 +1,2 @@
+Add :func:`inspect.getmembers_static` , it return all members without
+triggering dynamic lookup via the descriptor protocol. Patch by Weipeng Hong.