mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
Reduced number of temporary names used at module scope. Use underscores in
front of temporary names in the module namespace.
This commit is contained in:
parent
1f83ccee88
commit
dc1a072e02
1 changed files with 3 additions and 5 deletions
|
|
@ -72,12 +72,10 @@ arglist = 311
|
||||||
argument = 312
|
argument = 312
|
||||||
#--end constants--
|
#--end constants--
|
||||||
|
|
||||||
names = dir()
|
|
||||||
sym_name = {}
|
sym_name = {}
|
||||||
for name in names:
|
for _name, _value in globals().items():
|
||||||
number = eval(name)
|
if type(_value) is type(0):
|
||||||
if type(number) is type(0):
|
sym_name[_value] = _name
|
||||||
sym_name[number] = name
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue