[IPython-dev] svnversion used for Release.py

Fernando Perez fperez.net at gmail.com
Mon Dec 11 11:53:07 EST 2006

On 12/6/06, R. Bernstein <rocky at panix.com> wrote:
> I mentioned previously:
>  ...
>  > There is/was a small bug
>  > in pydb in calling post_mortem (via %debug) when there is no traceback
>  > around. That's been fixed in pydb's version control and a release will
>  > probably go out Dec 10th.
> Well, actually pdb has the same bug. If you call post_mortem before
> there's been an exception, you'll get one - from
> post_mortem. Hmmm... perhaps just post_mortem trying to be helpful?
> It may be that ipython wants to test for this before calling
> post_mortem. But with respect to pydb, the right thing is to (also)
> make a check in post_mortem -- one shouldn't assume the only time
> post_mortem will ever get called is from ipython.
> Should other pdb users feel this a pdb bug too, some good citizen
> might submit a Python bug report. (I probably won't.)

I just fixed it for IPython, the fix should cover pydb usage as well
(please let me know if it doesn't, I don't have it for testing).  This
is the behavior now (r1977):

In [1]: debug
ERROR: No traceback has been produced, nothing to debug.



More information about the IPython-dev mailing list