Hi Nick,
On Sat, Oct 19, 2013 at 1:41 PM, Nick Coghlan <[email protected]> wrote:
> recreating the *exact* exception subclass check from
> Python is actually difficult these days.
Can't it be done roughly like that?
def __exit__(self, typ, val, tb):
try:
raise typ, val
except self.exceptions:
return True
except:
return False
A bientôt,
Armin.
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com