Representation of floats (-> Mark Dickinson?)

Mark Dickinson mdickinson at enthought.com
Wed Sep 7 02:56:42 EDT 2011


On Sep 7, 4:58 am, casevh <cas... at gmail.com> wrote:
> IIRC, Python
> 3.2 changed (for floats) __str__ to call __repr__.

Yes, exactly:  str and repr of a float are identical in Python 3.2 +

I'm also puzzled by the

2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]
[...]
>>> 1.1 * 1.1
1.21

in jmf's message.  Cut-and-paste typo?

--
Mark



More information about the Python-list mailing list