On Thu August 7 2008 10:13:06 am Ian Bicking wrote:
> I'm not sure, but maybe u'a'.encode('unicode_internal') shows UCS2/4? A
> quick test appears to saw yes -- the result is 'a\x00\x00\x00' on a UCS4
> build, 'a\x00' on a UCS2 build.
There is also `sys.maxunicode`. Its values are 65535 for UCS-2 and 1114111
for UCS-4. Or, in other Python:
"UCS-4" if sys.maxunicode > 65536 else "UCS-2"
--
Jeremy Kloth
http://4suite.org/
_______________________________________________
Distutils-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig