What is the best way to deal with non-ASCII paths when working with the
python standard library? Specifically, when using functions like open()
and the os and glob modules, what should be passed in?  What should I
expect out?

In experimenting with it, it appears that these libraries accept str
objects containing UTF-8 encoded bytes and similarly that is what they
return.  It would seem better to me if they could be made to accept and
return unicode objects, but I could see that that might cause backwards
compatibility problems.  Still, is UTF-8 encoded strs really a safe bet?
Are there circumstances, including non HFS filesystems, where it will bite
me if I make this assumption?

Nick
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to