gh-112062: Make `_struct` module thread-safe in `--disable-gil` builds by chgnrdv · Pull Request #112094 · python/cpython
* use `PyDict_GetItemRef` instead of `PyDict_GetItemWithError` in `cache_struct_converter` to avoid usage of borrowed ref with explicit incref * clear cache dict but preserve the reference in `_clearcache_impl` * create cache dict in `_structmodule_exec`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters