pylint #4983 new py2.5 check: test "yield" in "try" body with yield in exception handlers. [open]
In general, it seems to be unsafe to have a "yield" in a "try" body and in a following "except:" or "except Exception:" clause, unless GeneratorExit is explicitly dealt with in an earlier "except" clause. Maybe this could become a new pylint rule? | |
priority | normal |
---|---|
type | enhancement |
done in | <not specified> |
load | 0.000 |
load left | 0.000 |
closed by | <not specified> |
similar entities