[Python-Dev] Shorter float repr in Python 3.1?

Paul Moore p.f.moore at gmail.com
Tue Apr 7 17:51:35 CEST 2009


It would have helped if I'd copied the list...

Sorry,
Paul.

2009/4/7 Paul Moore <p.f.moore at gmail.com>:
> 2009/4/7 Michael Foord <fuzzyman at voidspace.org.uk>:
>> Mark Dickinson wrote:
>>>
>>> [snip...]
>>>  Discussion points
>>> =================
>>>
>>> (1) Any objections to including this into py3k?  If there's
>>> controversy, then I guess we'll need a PEP.
>>>
>>
>> Big +1
>>>
>>> (2) Should other Python implementations (Jython,
>>> IronPython, etc.) be expected to use short float repr, or should
>>> it just be considered an implementation detail of CPython?
>>> I propose the latter, except that all implementations should
>>> be required to satisfy eval(repr(x)) == x for finite floats x.
>>>
>>
>> Short float repr should be an implementation detail, so long as
>> eval(repr(x)) == x still holds.
>
> What he said :-)
> Paul.
>


More information about the Python-Dev mailing list