mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-46565: del
loop vars that are leaking into module namespaces (GH-30993)
This commit is contained in:
parent
6394e981ad
commit
0cbdd21311
14 changed files with 21 additions and 8 deletions
|
@ -156,6 +156,7 @@ from collections import namedtuple, OrderedDict
|
|||
mod_dict = globals()
|
||||
for k, v in dis.COMPILER_FLAG_NAMES.items():
|
||||
mod_dict["CO_" + v] = k
|
||||
del k, v, mod_dict
|
||||
|
||||
# See Include/object.h
|
||||
TPFLAGS_IS_ABSTRACT = 1 << 20
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue