summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-04-19 20:54:37 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-04-19 20:54:37 (GMT)
commit0b2e98d53dab5023d4df5a276e42ea3dab30982b (patch)
treeeb6ff40bf98671e4f8d7f633feebd01de87e3ef5
parent201c4ecf180c5318d9ec40062e34943570c5fa32 (diff)
downloadcpython-0b2e98d53dab5023d4df5a276e42ea3dab30982b.zip
cpython-0b2e98d53dab5023d4df5a276e42ea3dab30982b.tar.gz
cpython-0b2e98d53dab5023d4df5a276e42ea3dab30982b.tar.bz2
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.
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index fba505f..d202362 100644
--- 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.