[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator
Hagen Fürstenau
report at bugs.python.org
Sat Jan 3 14:44:57 CET 2009
Hagen Fürstenau <hfuerstenau at gmx.net> added the comment:
I'm getting confused about whether it's actually desired behaviour that
generators can be star arguments.
The error message seems to say it's not: "argument after * must be a
sequence". The docs seem to agree: "If the syntax *expression appears in
the function call, expression must evaluate to a sequence." However
test_extcall specifically tests function calls with (non-sequence)
iterables as star arguments.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4806>
_______________________________________
More information about the Python-bugs-list
mailing list