cheetah icon indicating copy to clipboard operation
cheetah copied to clipboard

Anachronistic use of PyUnicode_FromString in _namemapper.c

Open pflarr opened this issue 15 years ago • 1 comments

I'm stuck with using a somewhat older version of python (2.4) for development, and have run into an issue building the cheetah package. In the C version of _namemapper.c, cheetah uses the PyUnicode_FromFormat function. While this is fine for python version 3.0+, this function doesn't appear anywhere in the python C API documentation for the 2.x versions. It is, however, present in the C API starting in at least 2.6 for some reason.

This appears to be the only thing holding cheetah back from being compatible with 2.4. The fix is trivial, and I've got a patch if you'd like it.

pflarr avatar Oct 15 '10 18:10 pflarr

Send a patch along :)

rtyler avatar Oct 15 '10 19:10 rtyler