cpython/Tools/c-analyzer/cpython
Miss Islington (bot) 0041087aa1
[3.13] gh-71587: Drop local reference cache to _strptime module in _datetime (gh-120424)
The _strptime module object was cached in a static local variable (in the datetime.strptime() implementation).  That's a problem when it crosses isolation boundaries, such as reinitializing the runtme or between interpreters.  This change fixes the problem by dropping the static variable, instead always relying on the normal sys.modules cache (via PyImport_Import()).

(cherry picked from commit 127c1d2771, AKA gh-120224)

Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
2024-06-12 17:15:16 +00:00
..
__init__.py bpo-36876: Fix the C analyzer tool. (GH-22841) 2020-10-22 18:42:51 -06:00
__main__.py gh-102033: Fix syntax error in Tools/c-analyzer (GH-102066) 2023-03-22 07:59:32 -07:00
_analyzer.py gh-105407: Remove unused imports in Tools/c-analyzer/ (#105410) 2023-06-06 21:08:48 +00:00
_builtin_types.py gh-94673: [c-analyzer] Add a Script to Identify Static Types (#94989) 2022-07-18 19:03:57 -06:00
_capi.py gh-102033: Fix syntax error in Tools/c-analyzer (GH-102066) 2023-03-22 07:59:32 -07:00
_files.py gh-90815: Add mimalloc memory allocator (#109914) 2023-10-30 15:43:11 +00:00
_parser.py Rename tier 2 redundancy eliminator to optimizer (#115888) 2024-02-26 08:42:53 -08:00
globals-to-fix.tsv [3.13] gh-71587: Drop local reference cache to _strptime module in _datetime (gh-120424) 2024-06-12 17:15:16 +00:00
ignored.tsv [3.13] gh-117398: Use Per-Interpreter State for the _datetime Static Types (gh-120009) 2024-06-03 23:37:28 +00:00
known.tsv bpo-36876: Fix the C analyzer tool. (GH-22841) 2020-10-22 18:42:51 -06:00