[Python-checkins] cpython: Document that _PyFunction_FastCallDict() must copy kwargs

victor.stinner python-checkins at python.org
Wed Feb 1 11:04:59 EST 2017


https://hg.python.org/cpython/rev/fcba9c9d987b
changeset: 106364:fcba9c9d987b
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Feb 01 17:04:52 2017 +0100
summary:
 Document that _PyFunction_FastCallDict() must copy kwargs
Issue #29318: Caller and callee functions must not share the dictionary:
kwargs must be copied.
files:
 Python/ceval.c | 2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Python/ceval.c b/Python/ceval.c
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -5039,6 +5039,8 @@
 if (nk != 0) {
 Py_ssize_t pos, i;
 
+ /* Issue #29318: Caller and callee functions must not share the
+ dictionary: kwargs must be copied. */
 kwtuple = PyTuple_New(2 * nk);
 if (kwtuple == NULL) {
 return NULL;
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /