Skip to content
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

Merged
merged 3 commits into from
Jul 19, 2020

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Jul 18, 2020


Remove specified key and return the corresponding value.

If key is not found, default is returned if given, otherwise KeyError
Copy link
Contributor

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."

Copy link
Member Author

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.

@serhiy-storchaka serhiy-storchaka merged commit 6bf3237 into python:master Jul 19, 2020
@serhiy-storchaka serhiy-storchaka deleted the clinic-odict-pop branch July 19, 2020 06:19
arun-mani-j pushed a commit to arun-mani-j/cpython that referenced this pull request Jul 21, 2020
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Aug 4, 2020
shihai1991 pushed a commit to shihai1991/cpython that referenced this pull request Aug 20, 2020
xzy3 pushed a commit to xzy3/cpython that referenced this pull request Oct 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants