[Python-Dev] Re: String module
Guido van Rossum
Thu, 30 May 2002 08:10:46 -0400
> > > > I think all of the unicode methods should be added to 8-bit strings,
> > > > even if they are just aliases for others (what's title case applied to
> > > > Latin-1? I suppose same as upper case?).
> > >
> > > So those would be locale dependent? (the Unicode ones are not).
> > Yes. isalpha() etc. for 8-bit strings are already locale dependent
> > aren't they?
> Yes, certainly. I'm just confirming, since this *is* a notable
> difference to Unicode strings.
Yes, but that's because locale-dependency is not a Unicode concept!
> > BTW, how about deprecating strop while we're at it?
> That seems acceptable to me, once string.py stops importing it.
> I wonder how much time after deprecating a builtin or extension module
> we should stop building it automatically in setup.py.
Me too. There are probably still places like Greg Stein's original
import hack that import strop because they haven't been converted to
--Guido van Rossum (home page: http://www.python.org/~guido/)