Author: Matti Picus <[email protected]>
Branch: issue2996
Changeset: r96468:7e0bd0b3f7d1
Date: 2019-04-14 09:19 +0300
http://bitbucket.org/pypy/pypy/changeset/7e0bd0b3f7d1/
Log: fix varargname in Signature
diff --git a/pypy/interpreter/pycode.py b/pypy/interpreter/pycode.py
--- a/pypy/interpreter/pycode.py
+++ b/pypy/interpreter/pycode.py
@@ -63,7 +63,7 @@
else:
kwonlyargs = None
if code.co_flags & CO_VARARGS:
- varargname = varnames[argcount]
+ varargname = varnames[argcount + kwonlyargcount]
argcount += 1
else:
varargname = None
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit