Back to index

python3.2  3.2.2
Classes
lib2to3.fixes.fix_throw Namespace Reference

Classes

class  FixThrow

Detailed Description

Fixer for generator.throw(E, V, T).

g.throw(E)       -> g.throw(E)
g.throw(E, V)    -> g.throw(E(V))
g.throw(E, V, T) -> g.throw(E(V).with_traceback(T))

g.throw("foo"[, V[, T]]) will warn about string exceptions.