]> granicus.if.org Git - python/commit
Generators had their throw() method allowing string exceptions. That's a
authorBrett Cannon <bcannon@gmail.com>
Tue, 11 Sep 2007 21:02:28 +0000 (21:02 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 11 Sep 2007 21:02:28 +0000 (21:02 +0000)
commit4c20bc40d73a7f4a977475e4fa02f7c8a43d796a
treebda917217f80707f88ab8514b5c0e383fd677b40
parent0b7120258a4df671291e39d3eb95a71a9dc4c186
Generators had their throw() method allowing string exceptions.  That's a
no-no.

Fixes issue #1147.  Need to fix 2.5 to raise a proper warning if a string
exception is passed in.
Lib/test/test_generators.py
Misc/NEWS
Objects/genobject.c