[Python-Dev] with_traceback (original) (raw)
Adam Olsen rhamph at gmail.com
Thu Mar 1 02:29:11 CET 2007
- Previous message: [Python-Dev] with_traceback
- Next message: [Python-Dev] with_traceback
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2/28/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
Adam Olsen wrote:
> It sounds like we should always copy the exception given to raise, I don't like that either, for all the reasons that make it infeasible to copy an arbitrary object in a general way.
Exceptions aren't arbitrary objects though. The requirement that they inherit from BaseException is specifically to create a common interface. Copying would be an extension of that interface.
I believe calling copy.copy() would be sufficient.
-- Adam Olsen, aka Rhamphoryncus
- Previous message: [Python-Dev] with_traceback
- Next message: [Python-Dev] with_traceback
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]