Issue 24069: Option to delete obsolete bytecode files (original) (raw)

Issue24069

Created on 2015-04-28 16:44 by deleted250130, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg242189 - (view) Author: (deleted250130) Date: 2015-04-28 16:44
The library compileall has the option -f to force the rebuilding of the bytecode files so I thought maybe there could also be an option to delete all bytecode files which haven't a non-bytecode library anymore.
msg242358 - (view) Author: Steven D'Aprano (steven.daprano) * (Python committer) Date: 2015-05-02 00:00
This would be risky, as byte-code only libraries do exist. I think that deleting orphaned .pyc files from inside the __pycache__ directory is safe, but deleting orphaned .pyc files outside of that risks deleting legitimate byte-code libraries which are in use.
History
Date User Action Args
2022-04-11 14:58:16 admin set github: 68257
2021-10-21 19:17:27 iritkatriel set status: open -> closedresolution: rejectedstage: resolved
2015-05-02 00:00:49 steven.daprano set nosy: + steven.dapranomessages: +
2015-04-29 12:44:10 brett.cannon set versions: + Python 3.5, - Python 3.4
2015-04-28 16:44:18 deleted250130 create