[Python-Dev] [Python-checkins] r64424 - in python/trunk: Include/object.h Lib/test/test_sys.py Misc/NEWS Objects/intobject.c Objects/longobject.c Objects/typeobject.c Python/bltinmodule.c

Mark Dickinson dickinsm at gmail.com
Tue Jun 24 21:43:54 CEST 2008

On Tue, Jun 24, 2008 at 8:05 PM, Guido van Rossum <guido at python.org> wrote:

> Following the discussion in the issue tracker is really hard (since
> most of the discussion apparently refers to earlier versions). I also
> don't see any doc changes.

I think there may also still be room for some additional discussion
on the output format;  while being eval-able is nice, one not-so-nice
aspect of the representation is that nearby floats can have
entirely distinct-looking representations;  as in, for example:

>>> hex(126.38)
'0x3f30a3d70a3d7 * 2.0 ** -43'
>>> hex(126.39)
'0x1f98f5c28f5c29 * 2.0 ** -46'

bin() suffers much less from this, but on balance I think I'd
still prefer to see a non eval-able output that's normalized with
respect to the most-significant bit instead of the least.

I realize that (a) this has little to do with implementation
details and use or not of __bin__, and (b) I should have
said this in the issue tracker a few days ago.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20080624/1feeeb92/attachment.htm>

More information about the Python-Dev mailing list