Author falsetru
Recipients falsetru
Date 2011-04-28.01:00:46
SpamBayes Score 0.00014256
Marked as misclassified No
Message-id <1303952447.32.0.22528411021.issue11944@psf.upfronthosting.co.za>
In-reply-to
Content
Expected "TypeError: cannot concatenate 'str' and 'int' objects" exception raised, but got following result.


>>> def g():
...     '1' + 0
...     yield 1, 2
...     yield 3, 4
...
>>> zip(*g())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: zip() argument after * must be a sequence, not generator
>>> (lambda xs: 0)(*g())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: <lambda>() argument after * must be a sequence, not generator
>>> list(*g())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: type object argument after * must be a sequence, not generator
>>> list(g())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 2, in g
TypeError: cannot concatenate 'str' and 'int' objects
History
Date User Action Args
2011-04-28 01:00:47falsetrusetrecipients: + falsetru
2011-04-28 01:00:47falsetrusetmessageid: <1303952447.32.0.22528411021.issue11944@psf.upfronthosting.co.za>
2011-04-28 01:00:46falsetrulinkissue11944 messages
2011-04-28 01:00:46falsetrucreate