[Python-Dev] unicode/string asymmetries

Martin v. Loewis martin@v.loewis.de
Fri, 11 Jan 2002 06:26:27 +0100


> #define Py_UNICODE_SIZE sizeof(PY_UNICODE_TYPE)
>    ?

Because you cannot use that in preprocessor tests. If you do

#if Py_UNICODE_SIZE == SIZEOF_INT

then the preprocessor is not supposed to do this properly unless you
have a integral number on each side.

Regards,
Martin