[Python-checkins] r46216 - python/trunk/Objects/stringobject.c

Fredrik Lundh fredrik at pythonware.com
Thu May 25 20:02:49 CEST 2006


Jim Jewett wrote:

> I understand that this was fixing that bug; I'm just not sure why this
> is the right solution.
> 
> Why not just special-case the single-character strings instead?

from the documentation:

    "If 'str' is non-NULL then the resulting PyString object must be
    treated as immutable and you must not fill in nor alter the data
    yourself, since the strings may be shared."

</F>



More information about the Python-checkins mailing list