floating point glitch

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael Hoffman

    #16
    Re: floating point glitch

    Alex Martelli wrote:[color=blue]
    > Michael Hoffman <m.h.3.9.1.with out.dots.at.cam .ac.uk@example. com> wrote:[color=green]
    >>
    >>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().[/color]
    >
    > ?! 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).[/color]

    Yep, I got that exactly backwards. D'oh!

    Thanks Alex and I'm sorry for any confusion I caused.
    --
    Michael Hoffman

    Comment

    Working...