This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author takluyver
Recipients georg.brandl, takluyver
Date 2016-10-25.13:12:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1477401123.41.0.136094342663.issue28528@psf.upfronthosting.co.za>
In-reply-to
Content
Pdb.checkline() does a hasattr() check to protect against self.curframe not existing. self.curframe can also be None (if self.forget() or self.reset() was called), but checkline() does not handle this.

The attached patch treats self.curframe == None as equivalent to the attribute being absent.

Background:
http://bugs.python.org/issue9230
https://github.com/ipython/ipython/issues/10028

(Georg, I've nosy-listed you as I saw your name on a couple of similar issues; I hope you don't mind)
History
Date User Action Args
2016-10-25 13:12:03takluyversetrecipients: + takluyver, georg.brandl
2016-10-25 13:12:03takluyversetmessageid: <1477401123.41.0.136094342663.issue28528@psf.upfronthosting.co.za>
2016-10-25 13:12:03takluyverlinkissue28528 messages
2016-10-25 13:12:03takluyvercreate