]> granicus.if.org Git - python/commit
Modify name conversion to be (hopefully) a bit more efficient.
authorJeremy Hylton <jeremy@alum.mit.edu>
Wed, 29 Aug 2001 18:09:50 +0000 (18:09 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Wed, 29 Aug 2001 18:09:50 +0000 (18:09 +0000)
commite4e9cd4c01b996430232069970eab9579d71d628
tree7fd388f37150a325aa9b17c239bc7a528b3b4913
parent5477f529d6f3b25e51ac6b321a6fe7b28fafe1f4
Modify name conversion to be (hopefully) a bit more efficient.

Use a dictionary instead of a list to map objects to their offsets in
a const/name tuple of a code object.

XXX The conversion is perhaps incomplete, in that we shouldn't have to
do the list2dict to start.
Lib/compiler/pyassem.py
Tools/compiler/compiler/pyassem.py