[Python-Dev] How to determine if char is signed or unsigned?

"Martin v. Löwis" martin at v.loewis.de
Wed Apr 5 21:30:48 CEST 2006


Thomas Heller wrote:
> Is there are #define symbol which allows to determine if
> 'char' is signed or unsigned? __CHAR_UNSIGNED__, maybe?

You could define an autoconf test for that. There is no
predefined symbol.

> I guess the buildbot failures on the ppc debian box are caused by
> ctypes using signed chars always.

So you think char is unsigned on ppc debian? I would find that
very surprising.

Regards,
Martin


More information about the Python-Dev mailing list