[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-bugs-list
Subject:    [issue14969] Restore sys.exc_clear()?
From:       alon horev <report () bugs ! python ! org>
Date:       2012-05-31 21:23:15
Message-ID: 1338499395.29.0.0675599021628.issue14969 () psf ! upfronthosting ! co ! za
[Download RAW message or body]


alon horev <alonho@gmail.com> added the comment:

Another possible solution is to explicitly set an exception's __supress_context__ \
attribute to False (right now impossible because it's the default value).  If a user \
can 'turn on' the flag when attaching a different exception (raise X from Y), why not \
allow 'turning it off'? (symmetry anyone?) right now it is set to False by default \
and changed to true when 'raising from'. I suggest changing the default to None, \
allowing the user to explicitly say: I'm no longer in the previous exception's \
context.

Feels a bit like solving our hack with another hack (:

And about the PSF contrib agreement, I'll do it as soon as I'm near a printer. too \
bad we're using pens and not RSA private keys for signatures (-:

   thanks, Alon

----------
nosy: +alonho

_______________________________________
Python tracker <report@bugs.python.org>
<http://bugs.python.org/issue14969>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-bugs-list%40marc.info



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic