[Python-Dev] Re-raise in absence of an "active" exception

Barry Warsaw barry at python.org
Sun Jun 27 11:49:53 EDT 2004


On Sun, 2004-06-27 at 07:39, Armin Rigo wrote:

> In other words, if we make explicit the implicit assumption that a bare
> 'raise' is indeed intended equivalent to
> 
>    exc, val, tb = sys.exc_info()
>    raise exc, val, tb
> 
> then the docs are already precise enough and CPython really implements that.

IIRC the discusions at the time bare raise was added, those were exactly
the intended semantics.

-Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-dev/attachments/20040627/f6744dc7/attachment.bin


More information about the Python-Dev mailing list