Staging
v0.8.1
https://github.com/python/cpython
Revision d393c1b227f22fb9af66040b2b367c99a4d1fa9a authored by Eric Snow on 14 September 2017, 18:18:12 UTC, committed by GitHub on 14 September 2017, 18:18:12 UTC
A bunch of code currently uses PyInterpreterState.modules directly instead of PyImport_GetModuleDict(). This complicates efforts to make changes relative to sys.modules. This patch switches to using PyImport_GetModuleDict() uniformly. Also, a number of related uses of sys.modules are updated for uniformity for the same reason.

Note that this code was already reviewed and merged as part of #1638. I reverted that and am now splitting it up into more focused parts.
1 parent 8dcf22f
History
Tip revision: d393c1b227f22fb9af66040b2b367c99a4d1fa9a authored by Eric Snow on 14 September 2017, 18:18:12 UTC
bpo-28411: Isolate PyInterpreterState.modules (#3575)
Tip revision: d393c1b
File Mode Size
Python.asdl -rw-r--r-- 5.2 KB
acceler.c -rw-r--r-- 3.3 KB
asdl.py -rw-r--r-- 12.6 KB
asdl_c.py -rw-r--r-- 43.6 KB
bitset.c -rw-r--r-- 1.0 KB
firstsets.c -rw-r--r-- 2.8 KB
grammar.c -rw-r--r-- 7.4 KB
grammar1.c -rw-r--r-- 1.3 KB
listnode.c -rw-r--r-- 1.3 KB
metagrammar.c -rw-r--r-- 2.4 KB
myreadline.c -rw-r--r-- 9.6 KB
node.c -rw-r--r-- 4.4 KB
parser.c -rw-r--r-- 11.6 KB
parser.h -rw-r--r-- 1.0 KB
parsetok.c -rw-r--r-- 10.6 KB
parsetok_pgen.c -rw-r--r-- 35 bytes
pgen.c -rw-r--r-- 17.9 KB
pgenmain.c -rw-r--r-- 4.1 KB
printgrammar.c -rw-r--r-- 2.9 KB
tokenizer.c -rw-r--r-- 54.4 KB
tokenizer.h -rw-r--r-- 3.6 KB
tokenizer_pgen.c -rw-r--r-- 36 bytes

back to top