[issue37206] Incorrect application of Argument Clinic to dict.pop()

Serhiy Storchaka report at bugs.python.org
Sun Jun 9 11:40:19 EDT 2019


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

I am working on this issue and almost done.

The questions is what inspect.Signature() and inspect.getfullargspec() should do with such functions.

1. Raise an exception as they did in old Python versions and as they do with builtin functions not converted to Argument Clinic.

2. Return a value where a special placeholder is used as a default value for optional parameters which cannot have a default value. In this case there are other questions: what is better name for it (I considered "unspecified" and "unrepresentable") and should it be a single object used for all parameters or a separate object created for every parameter?

----------
nosy: +yselivanov

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37206>
_______________________________________


More information about the Python-bugs-list mailing list