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 blueyed
Recipients blueyed
Date 2020-03-15.09:27:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1584264444.94.0.414903908366.issue39967@roundup.psfhosted.org>
In-reply-to
Content
`Bdb.reset` calls `linecache.checkcache`, which will clear the cache for any updated source files.

This however might result in displayed source code being different from the actual code, in case you are editing the file being currently debugged.

I think it is better to keep the initially cached version (which might still get invalidated/checked via inspect itself), but that is another issue.

The code is very old already, merged in b6775db241:

  commit b6775db241
  Author: Guido van Rossum <guido@python.org>
  Date:   Mon Aug 1 11:34:53 1994 +0000

      Merge alpha100 branch back to main trunk

I will try a PR that removes it to see if it causes any test failures.

Code ref: https://github.com/python/cpython/blob/598d29c51c7b5a77f71eed0f615eb0b3865a4085/Lib/bdb.py#L56-L57
History
Date User Action Args
2020-03-15 09:27:24blueyedsetrecipients: + blueyed
2020-03-15 09:27:24blueyedsetmessageid: <1584264444.94.0.414903908366.issue39967@roundup.psfhosted.org>
2020-03-15 09:27:24blueyedlinkissue39967 messages
2020-03-15 09:27:24blueyedcreate