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~
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to