{{ message }}
bpo-28280: Make PyMapping_Keys(), PyMapping_Values() and PyMapping_Items() always return a list#3840
Merged
serhiy-storchaka merged 13 commits intoOct 8, 2017
Merged
Conversation
serhiy-storchaka
left a comment
Member
There was a problem hiding this comment.
Add also an entry in What's New. This will help people to revise their code and fix errors in old versions of Python.
Sorry, something went wrong.
…hanged directives, and improved the error message.
serhiy-storchaka
approved these changes
Oct 1, 2017
serhiy-storchaka
left a comment
Member
There was a problem hiding this comment.
I'm approving this PR, but since I have proposed this change I can miss flaws of it. I want to get the approve from other core developers.
Sorry, something went wrong.
vstinner
reviewed
Oct 2, 2017
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.
In addition:
get_mapping_keys(),get_mapping_values()andget_mapping_items()to_testcapi, so that we would be able to testPyMapping_Keys(),PyMapping_Values()andPyMapping_Items().test_capito verify that each of these functions returns the appropriate list, and that it raises the appropriate error in case of a bad argument.https://bugs.python.org/issue28280