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
* Fix incorrect handling of signed zeros for complex-related classes. * Add Misc/NEWS entry. (cherry picked from commit 112ec38)
* Fix incorrect handling of signed zeros for complex-related classes. * Add Misc/NEWS entry. (cherry picked from commit 112ec38)
instead of _PyRuntime.st.try_stackless.
instead of _PyRuntime.st.try_stackless.
This PR, based on a patch by Serhiy Storchaka, fixes the issues with signed zeros identified in http://bugs.python.org/issue29602:
class A(object)implementing__complex__,complex(A())ignored the sign of a negative zero in the imaginary partclass C(complex), construction of aCinstance from acomplexinstance also ignored the sign of a negative zero in the imaginary part.