Ian Bicking <[EMAIL PROTECTED]> wrote:
> OTOH, str(path) will break unicode filenames.  And unicode()
> breaks anything that simply desires to pass data through without
> effecting its encoding.

That general problem was the motivation for PEP 349.  Originally I
suggested adding a new built-in.  However, Guido's suggestion of
allowing str() to return unicode objects works okay too and that's
the way the current PEP is written.  With Python 2.5 you can do it
the ugly way using a str format (e.g. '%s' % obj).

  Neil

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to