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 josiahcarlson
Recipients
Date 2007-01-10.18:24:04
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
From what I understand, the point of the lazy strings patch is to make certain operations faster.  What operations?  Generally speaking, looped concatenation (x += y), and other looping operations that have traditionally been slow; O(n^2).

While this error is still common among new users of Python, generally users only get bit once.  They ask about it on python-list and are told: z = []; z.append(y); x = ''.join(z) .

Then again, the only place where I've seen the iterative building up of *text* is really in document reformatting (like textwrap).  Basically all other use-cases (that I have seen) generally involve the manipulation of binary data.  Larry, out of curiosity, have you found code out there that currently loops and concatenates unicode?
History
Date User Action Args
2007-08-23 15:56:02adminlinkissue1629305 messages
2007-08-23 15:56:02admincreate