hashcollision wrote: > TypeError: can only concatenate list (not "instance") to list > > IMHO, this is a problem. Is it? If so, I suggest that it be fixed in python > 3000.
I seem to remember this came up before, and was considered not to be something that needed changing. How would you decide what type the result should be? Who's to say it should be a list and not an X? Better to be explicit: l2 = l + list(x) or if in-place modification is acceptable, l.extend(x) -- 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
