summaryrefslogtreecommitdiff
path: root/Lib/symbol.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1997-10-06 21:06:29 +0000
committerFred Drake <fdrake@acm.org>1997-10-06 21:06:29 +0000
commit45f93c44becc67be87180cc44a73832ae5319d79 (patch)
tree1845fc2feb54e7b76330013e18f764cb7c1b7f2c /Lib/symbol.py
parent2108470a975b87d81ea813127ec114ce204ca008 (diff)
downloadcpython-45f93c44becc67be87180cc44a73832ae5319d79.tar.gz
Reduced number of temporary names used at module scope. Use underscores in
front of temporary names in the module namespace.
Diffstat (limited to 'Lib/symbol.py')
-rwxr-xr-xLib/symbol.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/Lib/symbol.py b/Lib/symbol.py
index 4a71968b25..678e9efae2 100755
--- a/Lib/symbol.py
+++ b/Lib/symbol.py
@@ -72,12 +72,10 @@ arglist = 311
argument = 312
#--end constants--
-names = dir()
sym_name = {}
-for name in names:
- number = eval(name)
- if type(number) is type(0):
- sym_name[number] = name
+for _name, _value in globals().items():
+ if type(_value) is type(0):
+ sym_name[_value] = _name
def main():