-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bpo-41333: Convert OrderedDict.pop() to Argument Clinic #21534
bpo-41333: Convert OrderedDict.pop() to Argument Clinic #21534
Conversation
Objects/odictobject.c
Outdated
|
||
Remove specified key and return the corresponding value. | ||
|
||
If key is not found, default is returned if given, otherwise KeyError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can make this read a little better, "If the key is not found, return the default if given; otherwise, raise a KeyError."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your suggestion.
https://bugs.python.org/issue41333