[IPython-dev] IPython and unicode (planning ahead for Py3k)

Brian Granger ellisonbg.net at gmail.com
Wed Nov 11 20:10:24 EST 2009


> These should be enormously rare, I think. By and large, we are mostly
> concerned
> with representing ~/, right? I think it is reasonable to only support
> (encoded)
> Unicode file paths and not support *completely* arbitrary file paths. I
> doubt we
> will get a single bug report.
>

Yes, I think they are rare.  I need to learn more about unicode.  When you
say we should
support encoded unicode paths,  does that mean the current get_home_dir
(which calls
decode) would have to change?

It does things like:

return homedir.decode(sys.getfilesystemencoding())

Should we just return unicode(homedir) instead?  I guess I can no longer
avoid learning
about unicode...


> Also, perhaps it's not worth noting, but OS X appears to require UTF-8
> encoding
> of filenames. I.e., one should use unicode strings in Python to represent
> them.
>
>
Seems like unicode is the way to go then.  Thanks for the info.

Cheers,

Brian


> --
> Robert Kern
>
> "I have come to believe that the whole world is an enigma, a harmless
> enigma
>  that is made terrible by our own mad attempt to interpret it as though it
> had
>  an underlying truth."
>   -- Umberto Eco
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20091111/aac0e5b3/attachment.html>


More information about the IPython-dev mailing list