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.14:38:27
SpamBayes Score 0.00058646925
Marked as misclassified No
Message-id <1238510309.61.0.338361305744.issue1569040@psf.upfronthosting.co.za>
In-reply-to
Content
rhettinger: It's a bit unfair to paint the lazy string concatenation
patch with the adjective "ropes", then point out ropes have been
rejected many times.  Lazy string concatenation objects are a form of
specialized rope but they don't share the downsides of these other
"ropes" proposals.

The major problems with conventional rope implementations are a)
slowdown, b) complexity, and c) you must use a new API to interact with
them:
http://mail.python.org/pipermail/python-dev/2000-February/002321.html

Lazy string concatenation makes Python faster, it isolates its
complexity locally inside the string object implementation, and it makes
only two changes to the API.  Those two changes are: one, you may no
longer access the string directly, and two, APIs that returned the
internal string (PyString_AsString, PyString_AS_STRING*) may fail in
low-memory conditions.  You don't need to use a new API to interact with
the string; traditional APIs like strchr work fine.

* Those were the names in 2.6 anyway.  I don't know what the modern
names would be in 3.1.
History
Date User Action Args
2009-03-31 14:38:29larrysetrecipients: + larry, rhettinger, pitrou, ajaksu2, benjamin.peterson
2009-03-31 14:38:29larrysetmessageid: <1238510309.61.0.338361305744.issue1569040@psf.upfronthosting.co.za>
2009-03-31 14:38:28larrylinkissue1569040 messages
2009-03-31 14:38:27larrycreate