[issue9416] complex formatting incorrectly omits a negative zero real part

2010-08-01 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed in r83400, r83401, r83402. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue9416] complex formatting incorrectly omits a negative zero real part

2010-07-29 Thread Mark Dickinson
Mark Dickinson added the comment: Well, that's a separate issue, so should have its own feature request. The main difficulty is that Python has no notion of a 'pure imaginary' type: one would have to implement such a type to get this behaviour. C99 defines the _Imaginary types for exactly th

[issue9416] complex formatting incorrectly omits a negative zero real part

2010-07-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I wonder if complex addition/subtraction should preserve -0.0 when it is added to a purely imaginary number. I.e., >>> -0.0+1j (-0+1j) -- nosy: +belopolsky ___ Python tracker

[issue9416] complex formatting incorrectly omits a negative zero real part

2010-07-29 Thread Mark Dickinson
Mark Dickinson added the comment: And here's a fix (includes the earlier tests, along with some fixes to the tests themselves). -- stage: unit test needed -> patch review Added file: http://bugs.python.org/file18254/issue9416.patch ___ Python tracke

[issue9416] complex formatting incorrectly omits a negative zero real part

2010-07-29 Thread Mark Dickinson
Changes by Mark Dickinson : -- keywords: +patch Added file: http://bugs.python.org/file18252/issue9416_tests.patch ___ Python tracker ___ _

[issue9416] complex formatting incorrectly omits a negative zero real part

2010-07-29 Thread Mark Dickinson
Mark Dickinson added the comment: Here are some tests. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue9416] complex formatting incorrectly omits a negative zero real part

2010-07-29 Thread Mark Dickinson
Changes by Mark Dickinson : -- components: +Interpreter Core ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue9416] complex formatting incorrectly omits a negative zero real part

2010-07-29 Thread Mark Dickinson
New submission from Mark Dickinson : >>> format(complex(-0.0, 2.0), '.10') # expected '(-0+2j)' '(+2j)' >>> format(complex(-0.0, 2.0), '') # gives expected result '(-0+2j)' -- assignee: mark.dickinson messages: 111923 nosy: eric.smith, mark.dickinson priority: normal severity: nor