floating point glitch
Michael Hoffman
m.h.3.9.1.without.dots.at.cam.ac.uk at example.com
Tue Sep 28 14:32:33 EDT 2004
Alex Martelli wrote:
> Michael Hoffman <m.h.3.9.1.without.dots.at.cam.ac.uk at example.com> wrote:
>>
>>repr() does not provide an invertible function if you are using it on a
>>list, as was pointed out here, since list.__repr__() essentially calls
>>str() for its float members rather than repr().
>
> ?! I think you're confused, since things are exactly the other way
> around: list.__str__ calls repr on its members (so does list.__repr__,
> which happens to be exactly the same function).
Yep, I got that exactly backwards. D'oh!
Thanks Alex and I'm sorry for any confusion I caused.
--
Michael Hoffman
More information about the Python-list
mailing list