[issue45183] Unexpected exception with zip importer

Pablo Galindo Salgado report at bugs.python.org
Tue Sep 14 15:17:30 EDT 2021


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

I bisected this to:

3abf6f010243a91bf57cbf357dac33193f7b8407 is the first bad commit
commit 3abf6f010243a91bf57cbf357dac33193f7b8407
Author: Desmond Cheong <desmondcheongzx at gmail.com>
Date:   Tue Mar 9 04:06:02 2021 +0800

    bpo-14678: Update zipimport to support importlib.invalidate_caches() (GH-24159)



    Added an invalidate_caches() method to the zipimport.zipimporter class based on the implementation of importlib.FileFinder.invalidate_caches(). This was done by adding a get_files() method and an _archive_mtime attribute to zipimport.zipimporter to check for updates or cache invalidation whenever the cache of files and toc entry information in the zipimporter is accessed.

 Doc/library/zipimport.rst                          |    9 +
 Lib/test/test_zipimport.py                         |   41 +
 Lib/zipimport.py                                   |   10 +
 .../2021-01-07-21-25-49.bpo-14678.1zniCH.rst       |    3 +
 Python/importlib_zipimport.h                       | 1896 ++++++++++----------
 5 files changed, 1020 insertions(+), 939 deletions(-)
 create mode 100644 Misc/NEWS.d/next/Library/2021-01-07-21-25-49.bpo-14678.1zniCH.rst
bisect run success


Which is https://bugs.python.org/issue14678

----------
nosy: +brett.cannon

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45183>
_______________________________________


More information about the Python-bugs-list mailing list