This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xtreak
Recipients Udi Meiri, pablogsal, xtreak, yselivanov
Date 2019-05-15.07:09:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This not reproducible on master and seems to fixed as part of PEP 570 related changes. Bisecting gives me d5d2b4546939b98244708e5bb0cfccd55b99d244 . Before d5d2b4546939b98244708e5bb0cfccd55b99d244 it produces an internal index error. I can reproduce the reported TypeError before PEP 570 was merged. I guess it's working perhaps as an unintended effect of the commit and internal error tells me it was not tested. Perhaps it's good to add a test for this? Note the change in fullargspec output between commits. Adding Pablo who will have better context.

➜  cpython git:(d5d2b45469) ./python.exe -c 'import inspect; print(inspect.getfullargspec(str.strip)); print(inspect.getcallargs(str.strip, "a"))'
/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/ DeprecationWarning: Use inspect.signature() instead of inspect.getfullargspec()
  warnings.warn("Use inspect.signature() instead of inspect.getfullargspec()",
FullArgSpec(args=['self', 'chars'], varargs=None, varkw=None, defaults=(None,), kwonlyargs=[], kwonlydefaults=None, annotations={})
{'self': 'a', 'chars': None}

d5d2b45469~1 commit

➜  cpython git:(81c5a90595) ./python.exe -c 'import inspect; print(inspect.getfullargspec(str.strip)); print(inspect.getcallargs(str.strip, "a"))'
FullArgSpec(args=[], varargs=None, varkw=None, defaults=(None,), posonlyargs=['self', 'chars'], kwonlyargs=[], kwonlydefaults=None, annotations={})
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/karthikeyansingaravelan/stuff/python/cpython/Lib/", line 1365, in getcallargs
    arg2value[posonlyargs[i]] = positional[i]
IndexError: tuple index out of range
Date User Action Args
2019-05-15 07:09:34xtreaksetrecipients: + xtreak, yselivanov, pablogsal, Udi Meiri
2019-05-15 07:09:34xtreaksetmessageid: <>
2019-05-15 07:09:34xtreaklinkissue36920 messages
2019-05-15 07:09:33xtreakcreate