On 03/27/2014 03:10 PM, Greg Ewing wrote:
R. David Murray wrote:
I've done the 'landmark' thing as well, in the string context; that can be
very useful when doing incremental test driven development.  (Granted, you
could do that with __bytes__;

Can't you do it more easily just by wrapping ascii()
around the argument? That seems sufficient for debugging
purposes to me.

The problem there is ascii() still returns unicode (okay, okay, str), so you 
still have to encode it.

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