[Python-Dev] Removing --with-wctype-functions support
"Martin v. Löwis"
martin at v.loewis.de
Tue Apr 26 22:24:37 CEST 2005
S.Çağlar Onur wrote:
> I want to know status of
> this thread.
The status is that they are still there.
> Will python remove wctype functions support from its core?
I don't know what MAL's plans are these days, but it is likely that
he will remove the functions from the places where they are used
at the moment.
> If it will, what about locale-dependent case conversation functions?
> Without this support python behaves wrong in tr_TR.UTF-8 locale.
I can sympathise with the problem. IMO, the right solution is to provide
them throught the locale module. That would have the advantage that
the choice of locale-awareness of Unicode case conversions (etc.) is
a per-script decision, rather than an interpreter built-time decision.
Patches in this direction (adding the functions to _localemodule.c)
are welcome, independent of whether they are removed from the methods
on Unicode objects. Such functions should probably polymorphically
operate both on byte strings and Unicode strings, allowing to deprecate
the locale-specific methods on strings as well.
More information about the Python-Dev