[Distutils] [tg-trunk] Re: [ANN] EggFreezer
Jeremy Kloth
jeremy.kloth at gmail.com
Thu Aug 7 20:36:55 CEST 2008
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/
More information about the Distutils-SIG
mailing list