classification
Title: Pdb.checkline()
Type: behavior Stage: patch review
Components: Library (Lib) Versions: Python 3.7, Python 3.6, Python 3.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: erlendaasland, georg.brandl, takluyver, xdegaye
Priority: normal Keywords: patch

Created on 2016-10-25 13:12 by takluyver, last changed 2021-04-16 12:42 by erlendaasland.

Files
File name Uploaded Description Edit
pdb-reset-checkline.patch takluyver, 2016-10-25 13:12 review
Pull Requests
URL Status Linked Edit
PR 25438 open erlendaasland, 2021-04-16 12:42
Messages (1)
msg279402 - (view) Author: Thomas Kluyver (takluyver) * Date: 2016-10-25 13:12
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
2021-04-16 12:42:08erlendaaslandsetnosy: + erlendaasland

pull_requests: + pull_request24168
stage: patch review
2016-10-27 18:19:54xdegayesetnosy: + xdegaye
2016-10-25 13:12:03takluyvercreate