[Python-3000] PEP 3137 plan of attack

Christian Heimes lists at cheimes.de
Wed Oct 10 21:58:19 CEST 2007


Georg Brandl wrote:
> I agree that this is quite confusing. The PyBytes functions can be changed
> without a thought since they aren't 2.x heritage. Since PyBuffer_* is already
> taken, what about a PyByteBuffer_ prefix? PyString_ could then be renamed
> to PyByteString_. PyUnicode might be allowed to stay...

I like your idea!

IMHO PyUnicode_ can stay. It reflects the intention and aim of the type
and it's easy to remember. str() contains unicode data and it's C name
is PyUnicode. That works for me. *g*

For the other two names I find PyBytes_ for bytes() and PyBytesBuffer_
for buffer() easier to remember and more consistent.

Christian



More information about the Python-3000 mailing list