[Python-Dev] The "lazy strings" patch

skip at pobox.com skip at pobox.com
Mon Oct 23 17:49:26 CEST 2006


    Larry> The only function that *might* return a non-terminated char * is
    Larry> PyString_AsUnterminatedString().  This function is static to
    Larry> stringobject.c--and I would be shocked if it were ever otherwise.

If it's static to stringobject.c it doesn't need a PyString_ prefix.  In
fact, I'd argue that it shouldn't have one so that people reading the code
won't miss the "static" and think it is part of the published API.

    Larry> Am I correct in understanding that changing the Python minor
    Larry> revision number (2.5 -> 2.6) requires external modules to
    Larry> recompile?

Yes, in general, though you can often get away without it if you don't mind
Python screaming at you about version mismatches.

Skip


More information about the Python-Dev mailing list