[Python-3000] Making more effective use of slice objects in Py3k
Greg Ewing
greg.ewing at canterbury.ac.nz
Wed Aug 30 03:46:17 CEST 2006
Josiah Carlson wrote:
> On the other hand, its performance characteristics could be
> confusing to users of Python who may have come to expect that "st+''" is
> a constant time operation, regardless of the length of st.
Even if that's always true, I'm not sure it's really a
useful thing to know. How often do you write a string
concatenation expecting that one of the operands will
almost always be empty? I can count the number of times
I've done that on the fingers of one elbow.
--
Greg
More information about the Python-3000
mailing list