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

Eli Bendersky eliben at gmail.com
Fri Aug 31 13:22:54 CEST 2012


On Fri, Aug 31, 2012 at 3:43 AM, Gregory P. Smith <greg at krypto.org> wrote:
> 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.
>>I wondered about the same thing a month ago -
http://mail.python.org/pipermail/python-dev/2012-July/121031.html
Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20120831/bf40a120/attachment.html>


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /