[Python-Dev] Proposal: make float.__str__ identical to float__repr__ in Python 3.2

Alexander Belopolsky alexander.belopolsky at gmail.com
Fri Jul 30 02:34:20 CEST 2010


On Thu, Jul 29, 2010 at 6:30 PM, Raymond Hettinger
<raymond.hettinger at gmail.com> wrote:
..
> It also really calls into question whether there are good
> reasons for other types to have a __str__ that is different
> than their __repr__.

For strings, the distinction is very useful.  In this and many other
cases unifying str and repr would mean making a choice between
readability and parseability.


More information about the Python-Dev mailing list