[Python-3000] raise with traceback? (original) (raw)

Guido van Rossum guido at python.org
Sun Aug 20 17:53:49 CEST 2006


The 'with' syntax is attractive because it will flag all unconverted code as a syntax error.

I wonder if "raise ValueError" should still be allowed (as equivalent to "raise ValueError()") or that it should be disallowed.

--Guido

On 8/20/06, Georg Brandl <g.brandl at gmx.net> wrote:

Hi,

as raise ValueError, "something went wrong" is going to go away, how will one raise with a custom traceback? The obvious raise ValueError("something went wrong"), traceback or something more esoteric like raise ValueError("something went wrong") with traceback ? Georg


Python-3000 mailing list Python-3000 at python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/guido%40python.org

-- --Guido van Rossum (home page: http://www.python.org/~guido/)



More information about the Python-3000 mailing list