-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Complex representation #43383
Comments
As per request on c.l.p: I've implemented a small patch to change the output of '<r>+<i>j' without brackets, but leaves the string output I don't know whether this patch is sensible, and eval("5*%r" % (1+2j,)) won't work properly anymore, or whether it'd be more |
Logged In: YES The second patch (python-complex-constructor.diff) changes The latter patch also creates test cases testing for |
Logged In: YES (The current behavior is not a bug, nor is this patch |
Logged In: YES The attached patch is a revised version of the patch to the Anyway, I personally also find this to be the "better" way, |
I have applied this patch in 2.6 and it seem to work as intended. The test_complex.py unit tests all pass. I guess the change could be useful if you are are serializing and desearializing lists of complex numbers. I think it should be applied. |
Works for me. I'll commit this for 2.6 (no backport) if there are no objections. |
Applied as r54247. Thanks for your patch! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: