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

re-cast int/float subclasses to int/float in json_clean #4599

Merged
merged 2 commits into from Nov 26, 2013

Conversation

minrk
Copy link
Member

@minrk minrk commented Nov 25, 2013

Protects against custom __str__ in int subclasses (e.g. enums).

Works around a bug in the stdlib.

closes #4598

Protects against custom `__str__` in int subclasses (e.g. enums).

Works around a [bug in the stdlib](http://bugs.python.org/issue12657).

closes ipython#4598
@takluyver
Copy link
Member

This looks sensible to me, and tests pass.

takluyver added a commit that referenced this pull request Nov 26, 2013
re-cast int/float subclasses to int/float in json_clean
@takluyver takluyver merged commit f2d32af into ipython:master Nov 26, 2013
@minrk minrk deleted the json_clean_enum branch March 31, 2014 23:36
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
re-cast int/float subclasses to int/float in json_clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Qtconsole docstring pop-up fails on method containing defaulted enum argument
2 participants