Author serhiy.storchaka
Recipients larry, methane, rhettinger, serhiy.storchaka
Date 2019-06-09.05:49:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1560059376.37.0.923426811984.issue37206@roundup.psfhosted.org>
In-reply-to
Content
The code generated by Argument Clinic is correct.

>>> {}.pop(1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
KeyError: 1
>>> {}.pop(1, None)

It is just a signature wrong. Some earlier versions of Argument Clinic allowed you to write "default=undefined" to specify an optional argument without default value, but this feature was lost a long time ago. So now signatures of some functions with optional arguments are false.
History
Date User Action Args
2019-06-09 05:49:36serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, larry, methane
2019-06-09 05:49:36serhiy.storchakasetmessageid: <1560059376.37.0.923426811984.issue37206@roundup.psfhosted.org>
2019-06-09 05:49:36serhiy.storchakalinkissue37206 messages
2019-06-09 05:49:36serhiy.storchakacreate