[Python-Dev] An interesting exception handling quirk (original) (raw)
Armin Rigo arigo at tunes.org
Sun Oct 20 08:08:53 CEST 2013
- Previous message: [Python-Dev] An interesting exception handling quirk
- Next message: [Python-Dev] An interesting exception handling quirk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Nick,
On Sat, Oct 19, 2013 at 1:41 PM, Nick Coghlan <ncoghlan at gmail.com> 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.
- Previous message: [Python-Dev] An interesting exception handling quirk
- Next message: [Python-Dev] An interesting exception handling quirk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]