]> granicus.if.org Git - python/commitdiff
Optimize func(*tuple) function call
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 19 Apr 2016 20:54:37 +0000 (22:54 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 19 Apr 2016 20:54:37 +0000 (22:54 +0200)
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.

Misc/NEWS

index fba505f0e175afdd4f6ed20238969ee6b5ca915b..d202362d9426df7c5ea98fd384c72ee1ec544060 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -10,6 +10,10 @@ Release date: tba
 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.