[Python-3000] [Python-Dev] PyString -> PyBytes C API renaming

Stefan Behnel stefan_ml at behnel.de
Thu May 29 12:08:47 CEST 2008


Christian Heimes wrote:
> Stefan Behnel schrieb:
>> M.-A. Lemburg wrote:
>>> If you use PyBytes APIs, you expect to find PyBytes functions in
>>> the libs and also set breakpoints on these.
>> AFAICT, the PyBytes_* functions are in both Py2.6 and Py3 now, so no problem here.
> 
> In Python 2.6 the PyBytes_* functions are only available to the compiler
> but not to the linker. In 2.6 the ABI functions are PyString_* and in
> 3.0 it's PyBytes_*

Ah, even better then. Given that it was always PyString_*() in Py2, that
totally sounds like the right thing to me. I really don't think anyone using
the newly advertised Py3 PyBytes_*() C-API functions will honestly expect them
to be available in a 2.x binary lib.

Stefan



More information about the Python-3000 mailing list