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

Brian Granger ellisonbg.net@gmail....
Wed Nov 11 19:10:24 CST 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.



> --
> 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@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20091111/aac0e5b3/attachment.html 

More information about the IPython-dev mailing list