Message81657
Hi,
I find it weird that given this sample code:
def g():
yield iter(None)
list(*g())
I get this traceback:
Traceback (most recent call last):
File "a1.py", line 3, in <module>
list(*g())
TypeError: type object argument after * must be a sequence, not generator
At a minimum the exception message looks awkward to me. With the
proposed patch, the new traceback would be:
Traceback (most recent call last):
File "a1.py", line 3, in <module>
list(*g())
File "a1.py", line 2, in g
yield iter(None)
TypeError: 'NoneType' object is not iterable |
|
Date |
User |
Action |
Args |
2009-02-11 19:32:43 | gpolo | set | recipients:
+ gpolo |
2009-02-11 19:32:43 | gpolo | set | messageid: <1234380763.79.0.974439208897.issue5218@psf.upfronthosting.co.za> |
2009-02-11 19:32:42 | gpolo | link | issue5218 messages |
2009-02-11 19:32:42 | gpolo | create | |
|