[issue11944] Function call with * and generator hide exception raised by generator.

2012-02-03 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> duplicate status: open -> closed superseder: -> Function calls taking a generator as star argument can mask TypeErrors in the generator ___ Python tracker __

[issue11944] Function call with * and generator hide exception raised by generator.

2012-01-11 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue11944] Function call with * and generator hide exception raised by generator.

2011-04-28 Thread Daniel Urban
Daniel Urban added the comment: This may be the same/similar as issue4806 (which has a patch). -- nosy: +durban ___ Python tracker ___ __

[issue11944] Function call with * and generator hide exception raised by generator.

2011-04-28 Thread Jeong-Min Lee
Jeong-Min Lee added the comment: Some exceptions are reported correctly. >>> def g(): ... 1 / 0 ... yield 1, 2 ... yield 3, 4 ... >>> zip(*g()) Traceback (most recent call last): File "", line 1, in File "", line 2, in g ZeroDivisionError: integer division or modulo by zero

[issue11944] Function call with * and generator hide exception raised by generator.

2011-04-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11944] Function call with * and generator hide exception raised by generator.

2011-04-27 Thread Nick Coghlan
Nick Coghlan added the comment: It's not just hiding the real error, it's also saying something that isn't true. If you remove the deliberate error from the generator definition, it is clear that generators are perfectly acceptable as *arg inputs: >>> def g(): yield 1, 2 ... >>> list(*g()) [

[issue11944] Function call with * and generator hide exception raised by generator.

2011-04-27 Thread Jeong-Min Lee
Changes by Jeong-Min Lee : -- versions: +Python 3.2 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11944] Function call with * and generator hide exception raised by generator.

2011-04-27 Thread Jeong-Min Lee
New submission from Jeong-Min Lee : 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 "", line 1, in TypeEr