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 _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
