Re: [Python-Dev] Bug in inspect module

2007-03-21 Thread Ewan Mellor
On Sat, Mar 17, 2007 at 08:09:06PM -0500, Collin Winter wrote: > On 3/17/07, Ewan Mellor <[EMAIL PROTECTED]> wrote: > >I have a problem being reported (by Xen users) where inspect.stack() is > >throwing IndexError. I think that this is a bug in inspect.py -- > >fin

[Python-Dev] Bug in inspect module

2007-03-17 Thread Ewan Mellor
ffecting most people. That said, I think that it's reasonable to cope with a too-short source file in the same way as we cope with missing source files -- by throwing IOError from findsource and handling that exception later. Here's a patch. Cheers, Ewan Mellor, XenSource. --- inspec