This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author larry
Recipients ajaksu2, benjamin.peterson, larry, pitrou, rhettinger
Date 2009-03-31.17:15:26
SpamBayes Score 6.680108e-06
Marked as misclassified No
Message-id <1238519727.92.0.19784781549.issue1569040@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks for pointing that out!  I think I found it; the discussion is
actually about lazy string slices, and it starts here:
http://mail.python.org/pipermail/python-dev/2000-February/002317.html
If I were to resubmit lazy string slices (which wouldn't be in this
patch), the slices would only have weakrefs on the original string and
render when the original string was destroyed.  That addresses some of
the concerns about lazy string slices, though they are still
uncomfortably (internally) complex.

As for the second concern: the official way is to use the accessors, and
CPython consistently uses them itself.  I don't know what the right
answer is.  We *could* make PyStringObject a private type to force the
issue, though that would add overhead.

(Well, PyUnicodeObject really, this would never be accepted in the 2.x
series at this point.)
History
Date User Action Args
2009-03-31 17:15:28larrysetrecipients: + larry, rhettinger, pitrou, ajaksu2, benjamin.peterson
2009-03-31 17:15:27larrysetmessageid: <1238519727.92.0.19784781549.issue1569040@psf.upfronthosting.co.za>
2009-03-31 17:15:26larrylinkissue1569040 messages
2009-03-31 17:15:26larrycreate