summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-06-17 15:15:36 (GMT)
committerGitHub <noreply@github.com>2019-06-17 15:15:36 (GMT)
commit5352cc41fa4eb5f0dc847709392e88473b8593b0 (patch)
tree52e61a0ba8c225290589b6907606004e67db54cc /Doc/whatsnew
parent1b8a46d59734a77cd1f5ffcf3bdfcaafd58a87e7 (diff)
downloadcpython-5352cc41fa4eb5f0dc847709392e88473b8593b0.zip
cpython-5352cc41fa4eb5f0dc847709392e88473b8593b0.tar.gz
cpython-5352cc41fa4eb5f0dc847709392e88473b8593b0.tar.bz2
bpo-37194: Add PyObject_CallNoArgs() rationale (GH-14159)
Explain in the doc why PyObject_CallNoArgs() should be preferred over other existing ways to call a function without any arguments.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.9.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst
index c5cb626..3da8b16 100644
--- a/Doc/whatsnew/3.9.rst
+++ b/Doc/whatsnew/3.9.rst
@@ -103,7 +103,10 @@ Build and C API Changes
=======================
* Add a new public :c:func:`PyObject_CallNoArgs` function to the C API:
- call a callable Python object without any arguments.
+ call a callable Python object without any arguments. It is the most efficient
+ way to call a callable Python object without any argument.
+ (Contributed by Victor Stinner in :issue:`37194`.)
+
Deprecated