Is Python 2.7 “wide-build” usc4 not compatible with certain libraries?

…衆ロ難τιáo~ 提交于 2019-12-03 16:30:19

There is no satisfactory solution for this problem in Python 2: the UCS2 and UCS4 builds have incompatible ABIs, and require libraries to be built from source (as most binary eggs are built against the default UCS2 ABI). This issue details the problem, and the resolution that made it into Python 3.3 (PEP 393).

Your rationale for using a UCS4 build is a little suspect, though. A UCS2 build of Python is perfectly capable of "work[ing] with some unicode characters with high values", using surrogate pairs to represent supplementary code points.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!