[Python-3000] [Python-Dev] PyString -> PyBytes C API renaming
Nick Coghlan
ncoghlan at gmail.com
Thu May 29 11:53:05 CEST 2008
Stefan Behnel wrote:
> 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.
The PyBytes_* functions appear to be there, but a preprocessor macro
means it is actually the PyString_* functions that appear in the Python
DLL. That's great from a backwards compatibility point of view, but
seriously confusing from the point of view of anyone trying to embed or
otherwise debug Python 2.6.
> Besides, how likely is it that users set a breakpoint on the PyBytes/PyString
> functions?
Not very likely at all - but it would still be nice if the PyBytes_*
symbols were visible to the linker as well as the preprocessor.
Cheers,
Nick.
--
Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia
---------------------------------------------------------------
http://www.boredomandlaziness.org
More information about the Python-3000
mailing list