Skip to content

Post-commit updates for bpo-33073. #9303

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

Merged
merged 1 commit into from
Oct 19, 2018

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Sep 14, 2018

  • Simplify the C code.
  • Simplify tests and make them more strict and robust.
  • Add references in the documentation.

https://bugs.python.org/issue33073

tests = [10, 0, -10, 1]
class myint(int):
pass
tests = [10, 0, -10, 1, sys.maxsize + 1, True, False, myint(42)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: what about the enum.IntEnum tests? (I assume those can be derived from an int subclass but I just want to confirm).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enum.IntEnum is just an int subclass.

@serhiy-storchaka
Copy link
Member Author

@lisroach, please take a look.

@vstinner vstinner merged commit b2e2025 into python:master Oct 19, 2018
@vstinner
Copy link
Member

The change LGTM, but got no activity after @pablogsal approved it one month ago. I decided to merge it, since I consider that it enhances the code and I don't want this PR to be forgotten.

I changed the commit title, but kept its description.

Thanks @serhiy-storchaka, I like new tests :-)

cc @lisroach

@serhiy-storchaka serhiy-storchaka deleted the bpo-33073-update branch April 11, 2020 18:42
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