How to dectect UCS4 Python at runtime?

Daniel Dittmar daniel.dittmar at sap.com
Thu Aug 7 06:00:53 EDT 2003


I'm trying to detect whether the Python currently running has been compiled
for UCS2 or UCS4.

I need this because I'm distributing a C extension. I've choosen to pack the
binaries for all the Python versions into one download and then decide at
runtime which one to load. And with RedHat compiling Python for UCS4, I'll
have to do the same for the unicode variants.

Daniel

--
Daniel Dittmar
SAP DB, SAP Labs Berlin
http://www.sapdb.org







More information about the Python-list mailing list