[pyicu-dev] towards release 1.0

Christoph Burgmer cburgmer at ira.uka.de
Wed Mar 31 10:22:53 PDT 2010


Am Mittwoch, 31. März 2010 schrieben Sie:
> On Mar 31, 2010, at 9:57, Christoph Burgmer <cburgmer at ira.uka.de> wrote:
> > Hi
> >
> > Python has been converting all upper case library names to lower
> > case for
> > Python3. From what I see PyICU doesn't support Python3 yet, so this
> > might be a
> > non-issue for now, still I'd like to raise this for the 1.0 version
> > here.
> >
> > There's a PEP for the 2to3 changes which I don't have at hand right
> > now.
> 
> I've been thinking of renaming the 'PyICU' module name to 'icu' just
> like I did with PyLucene when switching from gcj to jcc, taking
> advantage of the backwards compatibility break this introduced.
> 
> If backwards compat is not an issue - or if this is the least bad time
> to do this - before 1.0 - I'd actually like to do so.
> 
> Andi..

What about:

PyICU.py:
import warnings
warnings.warn("Module 'PyICU' is deprecated, use 'import icu' instead'",
    category=DeprecationWarning, stacklevel=2)
from icu import *

Of course followed by updating imports in _PyICU.cpp.

-Christoph


More information about the pyicu-dev mailing list