Unexpected string behaviour: txt = 'this' ' works'
bearophileHUGS at lycos.com
bearophileHUGS at lycos.com
Wed Feb 11 07:16:03 EST 2009
christopher.saun... at durham.ac.uk (c d saunter):
>I assume it is a feature of the compiler.<
Yes it's a bug-prone antifeature that's probably a relic from C that
doesn't have a concatenation operator among strings as Python does
(+). So in Python it saves you to use + at the cost of possible bugs.
Bye,
bearophile
More information about the Python-list
mailing list