This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients benrg, jackdied, r.david.murray, terry.reedy
Date 2010-06-04.23:53:51
SpamBayes Score 0.003571111
Marked as misclassified No
Message-id <>
foo = tuple()
TypeError: can only concatenate list (not "tuple") to list

class Crasher(tuple): pass
foo = Crasher()
a = [1] + foo
print (type(a), len(a), type(b), len(type(b)), type(type(b)))

<class 'tuple'> 1 [] 1 <class 'list'>

as before, so namedtuple is not, in particular, the culprit.
Other two Crasher versions do the same. I also get a delayed pythonw error message after the print that does not cause the shell to restart. This may partly be an IDLE artifact.
Date User Action Args
2010-06-04 23:53:53terry.reedysetrecipients: + terry.reedy, jackdied, r.david.murray, benrg
2010-06-04 23:53:53terry.reedysetmessageid: <>
2010-06-04 23:53:51terry.reedylinkissue8847 messages
2010-06-04 23:53:51terry.reedycreate