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 Udi Meiri
Recipients Udi Meiri
Date 2019-05-15.02:03:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557885809.35.0.0229737900946.issue36920@roundup.psfhosted.org>
In-reply-to
Content
$ python3.7
Python 3.7.3rc1 (default, Mar 13 2019, 11:01:15) 
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import inspect

>>> inspect.getfullargspec(str.strip)
FullArgSpec(args=['self', 'chars'], varargs=None, varkw=None, defaults=None, kwonlyargs=[], kwonlydefaults=None, annotations={})
>>> inspect.signature(str.strip)
<Signature (self, chars=None, /)>

>>> inspect.signature(str.strip).bind('a')
<BoundArguments (self='a')>
>>> inspect.getcallargs(str.strip, 'a')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.7/inspect.py", line 1372, in getcallargs
    _missing_arguments(f_name, req, True, arg2value)
  File "/usr/lib/python3.7/inspect.py", line 1302, in _missing_arguments
    "" if missing == 1 else "s", s))
TypeError: strip() missing 1 required positional argument: 'chars'
History
Date User Action Args
2019-05-15 02:03:29Udi Meirisetrecipients: + Udi Meiri
2019-05-15 02:03:29Udi Meirisetmessageid: <1557885809.35.0.0229737900946.issue36920@roundup.psfhosted.org>
2019-05-15 02:03:29Udi Meirilinkissue36920 messages
2019-05-15 02:03:29Udi Meiricreate