summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorJeroen Demeyer <J.Demeyer@UGent.be>2019-08-15 15:49:46 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-08-15 15:49:46 (GMT)
commit37806f404f57b234902f0c8de9a04647ad01b7f1 (patch)
tree9d78c5a0256784d19987b3a9fc72367d336da9fd /Misc
parent40dad9545aad4ede89abbab1c1beef5303d9573e (diff)
downloadcpython-37806f404f57b234902f0c8de9a04647ad01b7f1.zip
cpython-37806f404f57b234902f0c8de9a04647ad01b7f1.tar.gz
cpython-37806f404f57b234902f0c8de9a04647ad01b7f1.tar.bz2
bpo-37207: enable vectorcall for type.__call__ (GH-14588)
Base PR for other PRs that want to play with `type.__call__` such as #13930 and #14589. The author is really @markshannon I just made the PR. https://bugs.python.org/issue37207 Automerge-Triggered-By: @encukou
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/C API/2019-07-07-10-37-07.bpo-37207.SlVNky.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2019-07-07-10-37-07.bpo-37207.SlVNky.rst b/Misc/NEWS.d/next/C API/2019-07-07-10-37-07.bpo-37207.SlVNky.rst
new file mode 100644
index 0000000..8df7661
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2019-07-07-10-37-07.bpo-37207.SlVNky.rst
@@ -0,0 +1,3 @@
+The vectorcall protocol is now enabled for ``type`` objects: set
+``tp_vectorcall`` to a vectorcall function to be used instead of ``tp_new``
+and ``tp_init`` when calling the class itself.