[Python-checkins] r71343 - python/branches/py3k-short-float-repr/Objects/stringlib/formatter.h
eric.smith
python-checkins at python.org
Tue Apr 7 03:02:27 CEST 2009
Author: eric.smith
Date: Tue Apr 7 03:02:27 2009
New Revision: 71343
Log:
Comments for find_number_parts.
Modified:
python/branches/py3k-short-float-repr/Objects/stringlib/formatter.h
Modified: python/branches/py3k-short-float-repr/Objects/stringlib/formatter.h
==============================================================================
--- python/branches/py3k-short-float-repr/Objects/stringlib/formatter.h (original)
+++ python/branches/py3k-short-float-repr/Objects/stringlib/formatter.h Tue Apr 7 03:02:27 2009
@@ -412,11 +412,12 @@
/* Given a number of the form:
[+-]digits[rest]
where ptr points to the start and end points to the end, parse
- the number into its integer part and then everything else (which
- could be a decimal, an exponent, or both.
- This is the format returned from PyOS_double_to_string().
+ the number into its integer part and then everything else (which
+ could be a decimal, an exponent, both, or neither.
+ This is compatible with the format returned from
+ PyOS_double_to_string().
Results are undefined (but shouldn't crash) for improperly
- formatted strings.
+ formatted strings.
Consider moving this to pystrtod.c
*/
static void
More information about the Python-checkins
mailing list