Issue 9661: 2to3 except fixer does the wrong thing for certain raise statements (original) (raw)
Issue9661
Created on 2010-08-22 18:51 by brodie, last changed 2022-04-11 14:57 by admin. This issue is now closed.
Messages (2) | ||
---|---|---|
msg114694 - (view) | Author: Brodie Rao (brodie) | Date: 2010-08-22 18:51 |
Given the following statements: raise Foo('bar'), None, baz raise Foo('bar'), None 2to3 produces: raise Foo('bar')(None).with_traceback(baz) raise Foo('bar')(None) Instead of: raise Foo('bar').with_traceback(baz) raise Foo('bar') | ||
msg114717 - (view) | Author: Benjamin Peterson (benjamin.peterson) * ![]() |
Date: 2010-08-22 23:51 |
r84276. I didn't "fix" the second case "raise e, None" since that syntax is quite pointless. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:57:05 | admin | set | github: 53870 |
2010-08-22 23:51:48 | benjamin.peterson | set | status: open -> closednosy: + benjamin.petersonmessages: + resolution: fixed |
2010-08-22 18:51:17 | brodie | create |