[Python-Dev] [Python-checkins] r64424 - inpython/trunk:Include/object.h Lib/test/test_sys.pyMisc/NEWSObjects/intobject.c Objects/longobject.cObjects/typeobject.cPython/bltinmodule.c

Mark Dickinson dickinsm at gmail.com
Thu Jun 26 23:53:18 CEST 2008

On Thu, Jun 26, 2008 at 10:30 PM, Raymond Hettinger <python at rcn.com> wrote:
> ISTM, that the currently proposed output format gives
> us this benefit for free (no changes to the parser).  The format is already
> close to the C99 notation but replaces the 'p' with '* 2.0 **' which I find
> to
> be both readable and self-explanatory.

There's one other major difference between the C99 notation and the
current patch:  the C99 notation includes a (hexa)decimal point.  The
advantages of this include:

 - the exponent gives a rough idea of the magnitude of the number, and
 - the exponent doesn't vary with changes to the least significant bits
   of the float.

The disadvantage is the loss of evalability.  (Is that a word?)


More information about the Python-Dev mailing list