A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-July/102532.html below:

make float.__str__ identical to float__repr__ in Python 3.2

[Python-Dev] Proposal: make float.__str__ identical to float__repr__ in Python 3.2 [Python-Dev] Proposal: make float.__str__ identical to float__repr__ in Python 3.2Alexander 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4