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/131404.html below:

[Python-Dev] PEP 460 reboot

[Python-Dev] PEP 460 rebootEthan Furman ethan at stoneleaf.us
Mon Jan 13 17:33:04 CET 2014
On 01/13/2014 07:52 AM, Barry Warsaw wrote:
> On Jan 12, 2014, at 09:45 PM, Glenn Linderman wrote:
>
>> Quotes in the stream are a great debug hint, without blowing up.
>
> They actually terrible for debugging for exactly the same reason as coercion
> in Python 2.  It's rarely what you really want, it silently succeeds, and it
> means that the user visible error is far removed from the actual bug, both in
> code distance and time.  So yes, it tells you Something Went Wrong, but is
> actually a hindrance to finding and fixing the problem.

You mean like this is?

--> '%s' % b'abc'
"b'abc'"

I agree, but we're stuck with it with str, we may as well be stuck with it for bytes, too.  :/

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