]> granicus.if.org Git - python/commit
Issue #9416: Fix some issues with complex formatting where the
authorMark Dickinson <dickinsm@gmail.com>
Sun, 1 Aug 2010 10:41:49 +0000 (10:41 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sun, 1 Aug 2010 10:41:49 +0000 (10:41 +0000)
commit5b65df7ce200fd4320fe5db1a307ee438de7a5ee
tree5c1e679831cf9052232040d6252955b2458fd85d
parent8708e385979ca6978da681ff6a27888facc41ba4
Issue #9416: Fix some issues with complex formatting where the
output with no type specifier failed to match the str output:

  - format(complex(-0.0, 2.0), '-') omitted the real part from the output,
  - format(complex(0.0, 2.0), '-') included a sign and parentheses.
Lib/test/test_complex.py
Misc/NEWS
Objects/stringlib/formatter.h