[Python-3000] Making more effective use of slice objects in Py3k (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Wed Aug 30 03:46:17 CEST 2006
- Previous message: [Python-3000] Making more effective use of slice objects in Py3k
- Next message: [Python-3000] Making more effective use of slice objects in Py3k
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-3000] Making more effective use of slice objects in Py3k
- Next message: [Python-3000] Making more effective use of slice objects in Py3k
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]