Message364224
`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 |
|
Date |
User |
Action |
Args |
2020-03-15 09:27:24 | blueyed | set | recipients:
+ blueyed |
2020-03-15 09:27:24 | blueyed | set | messageid: <1584264444.94.0.414903908366.issue39967@roundup.psfhosted.org> |
2020-03-15 09:27:24 | blueyed | link | issue39967 messages |
2020-03-15 09:27:24 | blueyed | create | |
|