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, gvanrossum, mark.dickinson, pitrou, rhettinger, terry.reedy
Date 2008-07-12.07:52:45
SpamBayes Score 0.0005466629
Marked as misclassified No
Message-id <1215849227.48.0.627315211005.issue3008@psf.upfronthosting.co.za>
In-reply-to
Content
In the spirit of being "liberal in what you accept, but strict in what you 
emit", here's a version that makes both the leading '0x' and the trailing 
'p...' exponent optional on input.  Both of these are still produced on 
output.

Note that this version is still perfectly interoperable with C99 and Java 
1.5+:  fromhex accepts anything produced by C and Java (e.g. via C's '%a', 
or Java's toHexString), and the output of hex can be read by C99's 
strtod/sscanf and Java's Double constructor, and/or used as hex literals 
in C or Java source.
History
Date User Action Args
2008-07-12 07:53:47mark.dickinsonsetspambayes_score: 0.000546663 -> 0.0005466629
recipients: + mark.dickinson, gvanrossum, rhettinger, terry.reedy, amaury.forgeotdarc, belopolsky, pitrou, alexandre.vassalotti
2008-07-12 07:53:47mark.dickinsonsetspambayes_score: 0.000546663 -> 0.000546663
messageid: <1215849227.48.0.627315211005.issue3008@psf.upfronthosting.co.za>
2008-07-12 07:52:47mark.dickinsonlinkissue3008 messages
2008-07-12 07:52:46mark.dickinsoncreate