This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients alexandre.vassalotti, amaury.forgeotdarc, belopolsky, mark.dickinson, pitrou, rhettinger, terry.reedy
Date 2008-06-20.12:38:21
SpamBayes Score 0.01589014
Marked as misclassified No
Message-id <1213965502.61.0.98487351018.issue3008@psf.upfronthosting.co.za>
In-reply-to
Content
The patch looks good to me.

It's a bit unfortunate that -0.0 doesn't round-trip correctly (the sign 
of the zero gets lost):

>>> eval(bin(-0.0))
0.0

I don't know whether it's worth special-casing this;  the output would 
have to be in a different format:  '-0b0 * 2.0 ** 0' isn't good enough, 
since unary minus has higher precedence than multiplication.
History
Date User Action Args
2008-06-20 12:38:22mark.dickinsonsetspambayes_score: 0.0158901 -> 0.01589014
recipients: + mark.dickinson, rhettinger, terry.reedy, amaury.forgeotdarc, belopolsky, pitrou, alexandre.vassalotti
2008-06-20 12:38:22mark.dickinsonsetspambayes_score: 0.0158901 -> 0.0158901
messageid: <1213965502.61.0.98487351018.issue3008@psf.upfronthosting.co.za>
2008-06-20 12:38:21mark.dickinsonlinkissue3008 messages
2008-06-20 12:38:21mark.dickinsoncreate