"James Stroud" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
>>>>>[1]+(1,) >> >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> TypeError: can only concatenate list (not "tuple") to list >> >> >> Its ugly and boring. > > Agreed. This would be similar to: > > py> 1 + 1.0 > > Traceback: can only add int to int. Etc. > > But then again, the unimaginative defense would be that it wouldn't be > python if you could catentate a list and a tuple. Maybe, but I don't think that it is best side of the languague. If we want constant objects like tuple why not to specify it explicitly? If we want lists as dict keys, why not to use copy-on-write? -- http://mail.python.org/mailman/listinfo/python-list