On Sat, May 24, 2008 at 09:18:14PM +0400, Oleg Broytmann wrote:
> On Sat, May 24, 2008 at 12:53:08PM -0400, Jim Jewett wrote:
> > if I want pretty, I'll use print (or pprint).
> 
>    str(container_of_strings) uses repr(), so you loose prettiness on either
> print or '%s' % container_of_strings. Exceptions use repr() for file names,
> e.g., which is very inconvenient, IMHO.

   I meant - you cannot print() an exception to make it pretty - it uses
repr() internally anyway. The only way to win back the prettiness is to
make repr() prints printable strings without encoding.

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to