[Python-Dev] exception chaining

Łukasz Langa lukasz at langa.pl
Mon Jan 23 15:49:11 CET 2012

Wiadomość napisana przez Ethan Furman w dniu 20 sty 2012, o godz. 21:05:

> The problem I have with 'raise x from None' is it puts 'from None' clear at the end of line

from None raise SomeOtherError('etc.')

Better yet:

with nocontext():
	raise SomeOtherError('etc.')

But that's python-ideas territory ;)

Best regards,
Łukasz Langa
Senior Systems Architecture Engineer

IT Infrastructure Department
Grupa Allegro Sp. z o.o.

Pomyśl o środowisku naturalnym zanim wydrukujesz tę wiadomość!
Please consider the environment before printing out this e-mail.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20120123/43a88ba9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 1898 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-dev/attachments/20120123/43a88ba9/attachment.jpg>

More information about the Python-Dev mailing list