hhatto/autopep8 — Issue #7: W602 breaks three-argument raise
Author: bdarnell
Created: 2012-02-09 09:18:16+00:00
State: open

autopep8 tries to convert "raise a, b, c" into "raise a(b, c)", but that's incorrect. "raise a(b), None, c" would be correct in some cases but not all (depending on the values of a and b). I don't think there's a guaranteed-safe way to make this transformation statically, so it's better to leave three-argument raise alone.

Sample code:
https://github.com/facebook/tornado/blob/master/tornado/web.py#L977