[Python-Dev] New Py_UNICODE doc

Fredrik Lundh fredrik at pythonware.com
Wed May 4 20:33:10 CEST 2005


Thomas Heller wrote:

> AFAIK, you can configure Python to use 16-bits or 32-bits Unicode chars,
> independend from the size of wchar_t.  The HAVE_USABLE_WCHAR_T macro
> can be used by extension writers to determine if Py_UNICODE is the same as
> wchar_t.

note that "usable" is more than just "same size"; it also implies that widechar
predicates (iswalnum etc) works properly with Unicode characters, under all
locales.

</F>





More information about the Python-Dev mailing list