On 2010-09-26, Paul Rubin <[email protected]> wrote: > Steven D'Aprano <[email protected]> writes: >> There's nothing obscure or unintuitive about "spam"*3 = "spamspamspam",
> Why would it not be ["spam","spam","spam"] or even "ssspppaaammm"? Because 3 * "spam" == "spam" + "spam" + "spam" Just like 3 * 6 = 6 + 6 + 6 So now I suppose "+" for string concatenation is a bad thing. -- Grant -- http://mail.python.org/mailman/listinfo/python-list
