Skip to content
This repository has been archived by the owner on Sep 14, 2018. It is now read-only.

special case identiy checks for booleans #1332

Merged
merged 2 commits into from Aug 30, 2016

Conversation

kunom
Copy link
Contributor

@kunom kunom commented Aug 18, 2016

Would this be an option to fix #1299 and similar issues?

The runtime impact of the code to non-bool objects is one additional cast per identity check.

@slide
Copy link
Contributor

slide commented Aug 20, 2016

I think this looks good. Did you run the whole test suite just to make sure it doesn't cause issues elsewhere?

@kunom
Copy link
Contributor Author

kunom commented Aug 22, 2016

No. At the moment, the test suite hangs at various places with 100% CPU and issues Debugger.Launch() statements and other message boxes.

@kunom
Copy link
Contributor Author

kunom commented Aug 30, 2016

I checked test-ipy.cmd /category:Languages\IronPython\IronPython\2.X* (which is equivalent to make test), and found no regressions introduced by this PR.

@slide slide merged commit 09ce292 into IronLanguages:ipy-2.7-maint Aug 30, 2016
@kunom kunom deleted the booleanis branch August 31, 2016 06:22
slide added a commit to IronLanguages/ironpython3 that referenced this pull request Mar 2, 2017
* Fixes for several tests in test_bool

* Merge in from IronLanguages/main#1332
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

json.dumps doesn't work properly for Nullable[bool]
2 participants