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

bpo-40269: Fix repr for complex. #19593

Closed

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Apr 19, 2020

eval(repr(z)) restores now the sign of zero components of z.

https://bugs.python.org/issue40269

eval(repr(z)) restores now the sign of zero components of z.
@serhiy-storchaka serhiy-storchaka changed the title bpo-22548: Fix repr for complex. bpo-40269: Fix repr for complex. Apr 19, 2020
@iritkatriel
Copy link
Member

https://bugs.python.org/issue40269 is closed. What is the status of this PR?

@mdickinson
Copy link
Member

What is the status of this PR?

Let's close, for the reasons discussed in the issue. It's an interesting proof of concept - yes, we can technically fix the repr so that eval(repr(z)) round trips for these cases, but if it's at the expense of a repr like "-(-0.0-0j)" in some corner cases, I don't think it's worth it.

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