[Python-checkins] r69675 - python/branches/py3k/Doc/reference/simple_stmts.rst
benjamin.peterson
python-checkins at python.org
Mon Feb 16 17:15:34 CET 2009
Author: benjamin.peterson
Date: Mon Feb 16 17:15:34 2009
New Revision: 69675
Log:
raise more generic Exception() instead of RuntimeError() #5281
Modified:
python/branches/py3k/Doc/reference/simple_stmts.rst
Modified: python/branches/py3k/Doc/reference/simple_stmts.rst
==============================================================================
--- python/branches/py3k/Doc/reference/simple_stmts.rst (original)
+++ python/branches/py3k/Doc/reference/simple_stmts.rst Mon Feb 16 17:15:34 2009
@@ -503,7 +503,7 @@
:meth:`with_traceback` exception method (which returns the same exception
instance, with its traceback set to its argument), like so::
- raise RuntimeError("foo occurred").with_traceback(tracebackobj)
+ raise Exception("foo occurred").with_traceback(tracebackobj)
.. index:: pair: exception; chaining
__cause__ (exception attribute)
More information about the Python-checkins
mailing list