Python: Remove support for late *args arguments

I found this to cause bad performance, so the implementation of this has
to be thought out more carefully.
This commit is contained in:
Rasmus Wriedt Larsen
2023-02-12 21:03:34 +01:00
parent 5c23b47ef4
commit 9e2eb56032
4 changed files with 1 additions and 77 deletions

View File

@@ -213,7 +213,7 @@ def starargs_only(*args):
def test_only_starargs():
starargs_only(arg1, arg2, "safe") # $ arg1 arg2 SPURIOUS: bad2,bad3="arg1" bad1,bad3="arg2"
args = (arg2, "safe") # $ arg2 func=starargs_only SPURIOUS: bad1,bad3="arg2"
args = (arg2, "safe") # $ MISSING: arg2
starargs_only(arg1, *args) # $ arg1 SPURIOUS: bad2,bad3="arg1"
args = (arg1, arg2, "safe") # $ arg1 arg2 func=starargs_only