Patrick Westerhoff <[email protected]> added the comment:

Yeah, I would really like that solution, especially as it separates from the 
`from X` syntax that sets the exception’s cause.

Also I would prefer a syntax solution over a class method simply because the 
exception context is something that is implicitely set by Python with the 
`raise` statement. So it would make sense to overwrite that behaviour with a 
syntax construct as well.

----------

_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue6210>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to