[Python-3000] raise with traceback?

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Aug 21 03:03:27 CEST 2006


Terry Reedy wrote:
> "Guido van Rossum" <guido at python.org> wrote in message 
> news:ca471dc20608200853i318d1051kc8cc8cfff1b7eb0a at mail.gmail.com...
> 
>>I wonder if "raise ValueError" should still be allowed (as equivalent
>>to "raise ValueError()") or that it should be disallowed.
> 
> +1 for disallow.

Seems like that would break a lot of code with no
obvious way of flagging things which need to be
changed.

Also it would preclude the possibility of any
future optimisation to avoid instantiating the
exception when its value isn't needed.

--
Greg


More information about the Python-3000 mailing list