Antoine Pitrou <pit...@free.fr> added the comment:

> The other problem with the "separate attribute" approach is that it
> makes the condition for suppressing the context ugly:
> 
>   exc.__suppress_context__ or exc.__cause__ is not None
> 
> That's hardly cleaner than:
> 
>   exc.__cause__ is not Ellipsis

I find it cleaner actually, because it states the intent rather than
hiding it behing an unexpected magic value (Ellipsis not being
exception-related).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14133>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to