[Python-Dev] Unicode Imports

M.-A. Lemburg mal at egenix.com
Fri Sep 8 21:12:33 CEST 2006

Kristján V. Jónsson wrote:
> Hello All.
> I just added patch 1552880 to sourceforge.  It is a patch for 2.6 (and 2.5) which allows unicode paths in sys.path and uses the unicode file api on windows.
> This is tried and tested on 2.5, and backported to 2.3 and is currently running on clients in china and esewhere.  It is minimally intrusive to the inporting mechanism, at the cost of some string conversion overhead (to utf8 and then back to unicode).

+1 on adding it to Python 2.6.

-0 for Python 2.5.x:

Applications/modules written for Python 2.4 and 2.5 won't be expecting
Unicode strings in sys.path with all the consequences that go with it,
so this is a true change in semantics, not just a nice to have
additional feature or "bug" fix.

OTOH, those applications will just break in a different place with the
patch applied :-)

Marc-Andre Lemburg

Professional Python Services directly from the Source  (#1, Sep 08 2006)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::

More information about the Python-Dev mailing list