[Python-Dev] PEP 460 reboot
Ethan 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