[Python-checkins] cpython: Optimize func(*tuple) function call

victor.stinner python-checkins at python.org
Tue Apr 19 18:31:55 EDT 2016


https://hg.python.org/cpython/rev/6535481d610e
changeset: 101071:6535481d610e
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue Apr 19 22:54:37 2016 +0200
summary:
 Optimize func(*tuple) function call
Issue #26802: Optimize function calls only using unpacking like "func(*tuple)"
(no other positional argument, no keyword): avoid copying the tuple.
Patch written by Joe Jevnik.
files:
 Misc/NEWS | 4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,10 @@
 Core and Builtins
 -----------------
 
+- Issue #26802: Optimize function calls only using unpacking like
+ ``func(*tuple)`` (no other positional argument, no keyword): avoid copying
+ the tuple. Patch written by Joe Jevnik.
+
 - Issue #26659: Make the builtin slice type support cycle collection.
 
 - Issue #26718: super.__init__ no longer leaks memory if called multiple times.
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

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