C API for str methods?

Pete Shinners pete at shinners.org
Sun Aug 4 17:33:54 EDT 2002

Bjorn Pettersen wrote:
> Is there a reason why methods like str.split, str.join are not
> accessible through a C API? (PyUnicode seems to have a lot more of the
> functionality available through a C API although not all of them...)

be wary of the C-api functions for unicode. They are not very 
"binary-compatable". you won't be able to ship RPMs or anything like that 
without "specializing" them for different distros. unfortunately python-dev 
has no intention of changing this (for various reasons). you are still 
better off accessing the "python-api" function for unicode from the C end.

More information about the Python-list mailing list