[Python-Dev] why is _PyBytes_Join not public but PyUnicode_Join is?

Gregory P. Smith greg at krypto.org
Fri Aug 31 03:43:05 CEST 2012


We have use for _PyBytes_Join in an extension module but technically it
isn't a public Python C API... anyone know why?

PyUnicode_Join is.

Looking up the bytes 'join' method and using the C API to call that method
object with proper parameters seems like overkill in the case where we're
not dealing with user supplied byte strings at all.

-gps
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20120830/79c4309c/attachment.html>


More information about the Python-Dev mailing list