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/2014-January/131781.html below:

[Python-Dev] PEP 461 Final?

[Python-Dev] PEP 461 Final? [Python-Dev] PEP 461 Final?Ethan Furman ethan at stoneleaf.us
Fri Jan 17 20:48:11 CET 2014
On 01/17/2014 11:40 AM, Glenn Linderman wrote:
> On 1/17/2014 8:49 AM, Ethan Furman wrote:
>>
>>     >>> b'%s' % 3.14
>>     Traceback (most recent call last):
>>     ...
>>     TypeError: 3.14 has no __bytes__ method
>
> If you produce a helpful error message for str (re: encoding), might it not be appropriate to produce a helpful error
> message for builtin number types (, perhaps you need a numeric format code?)?

Good point!  Done.

--
~Ethan~
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