ucs2 or ucs4?

Paul Hankin paul.hankin at gmail.com
Mon Jan 14 08:03:23 EST 2008


On Jan 14, 12:56 pm, Neal Becker <ndbeck... at gmail.com> wrote:
> How do I tell if my python-2.5 is build with ucs2 or ucs4?

See if unichr(0x10000) raises ValueError: if it does, you're ucs2.

--
Paul Hankin



More information about the Python-list mailing list