Re: [Python-Dev] Asynchronous use of Traceback objects

2005-09-04 Thread Christopher Armstrong
On 9/4/05, Michael Hudson <[EMAIL PROTECTED]> wrote: > Christopher Armstrong <[EMAIL PROTECTED]> writes: > > > I had the idea to create a fake Traceback object in Python that > > doesn't hold references to any frame objects, but is still able to be > > passed to 'raise' and formatted as tracebacks

Re: [Python-Dev] Asynchronous use of Traceback objects

2005-09-04 Thread Michael Hudson
Christopher Armstrong <[EMAIL PROTECTED]> writes: > I had the idea to create a fake Traceback object in Python that > doesn't hold references to any frame objects, but is still able to be > passed to 'raise' and formatted as tracebacks are, etc. Unfortunately, > raise does a type check on its thir

Re: [Python-Dev] Asynchronous use of Traceback objects

2005-09-03 Thread Christopher Armstrong
On 9/4/05, Phillip J. Eby <[EMAIL PROTECTED]> wrote: > At 06:24 PM 9/3/2005 +1000, Christopher Armstrong wrote: > >For example, perhaps a better idea would be to > >change the traceback-printing functions to use Python attribute lookup > >instead of internal structure lookup, and then change raise

Re: [Python-Dev] Asynchronous use of Traceback objects

2005-09-03 Thread Phillip J. Eby
At 06:24 PM 9/3/2005 +1000, Christopher Armstrong wrote: >For example, perhaps a better idea would be to >change the traceback-printing functions to use Python attribute lookup >instead of internal structure lookup, and then change raise to accept >arbitrary Python objects as its third argument, as

[Python-Dev] Asynchronous use of Traceback objects

2005-09-03 Thread Christopher Armstrong
With the implementation and soon release of PEP 342, I've been thinking more about traceback objects lately. First I'll give you some background information for my problem. I've implemented a module for integrating Twisted's Deferreds with the new yield expression, that allows you to do stuff like