Eric Snow
Eric Snow
FYI, as of 3.11 we "freeze" most of the [pure Python] modules that are imported during startup. (See gh-89183.) The idea is that we minimize the amount of disk I/O...
We still have a bunch of "global" C variables (static globals, static locals, maybe thread-local storage) in our code-base that break the isolation between interpreters. I added [Tools/c-globals/check-c-globals.py](https://github.com/python/cpython/blob/main/Tools/c-globals/check-c-globals.py) a while...
Also, [Tools/c-globals/ignored-globals.txt](https://github.com/python/cpython/blob/main/Tools/c-globals/ignored-globals.txt) is a bit out of date (some vars have been removed, renamed, or moved to another file). That should get cleaned up. It might also make sense to...
New changeset ee536b2020b1f0baad1286dbd4345e13870324af by Eric Snow in branch 'master': bpo-36876: Add a tool that identifies unsupported global C variables. (bpo-15877) https://github.com/python/cpython/commit/ee536b2020b1f0baad1286dbd4345e13870324af
@db3l, I'll take a look right away.
New changeset 64535fc6c0712caef0bc46be30e661f7ccf8280e by Eric Snow in branch 'master': bpo-36876: Skip test_check_c_globals for now. (gh-16017) https://github.com/python/cpython/commit/64535fc6c0712caef0bc46be30e661f7ccf8280e
New changeset 088b63ea7a8331a3e34bc93c3b873c60354b4fad by Eric Snow in branch 'master': bpo-36876: Fix the globals checker tool. (gh-16058) https://github.com/python/cpython/commit/088b63ea7a8331a3e34bc93c3b873c60354b4fad
New changeset e4c431ecf50def40eb93c3969c1e4eeaf7bf32f1 by Eric Snow in branch 'master': bpo-36876: Re-organize the c-analyzer tool code. (gh-16841) https://github.com/python/cpython/commit/e4c431ecf50def40eb93c3969c1e4eeaf7bf32f1
Thanks, Vinay!
FYI, others have been tackling this in separate issues (e.g. Victor, anyone relative to PEP-384).