]> granicus.if.org Git - python/commit
Undo change from list to dict for handling varnames, consts, etc.
authorJeremy Hylton <jeremy@alum.mit.edu>
Wed, 29 Aug 2001 19:45:33 +0000 (19:45 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Wed, 29 Aug 2001 19:45:33 +0000 (19:45 +0000)
commitbf77c465bdc9cea8e28bf690311c638a7b5321dd
tree47eb0765e129ced603a4516cc8fdd676fac347b2
parent5a9ac9704094f13c5bdfc67080a58279699d8e47
Undo change from list to dict for handling varnames, consts, etc.

As the doc string for _lookupName() explains:

    This routine uses a list instead of a dictionary, because a
    dictionary can't store two different keys if the keys have the
    same value but different types, e.g. 2 and 2L.  The compiler
    must treat these two separately, so it does an explicit type
    comparison before comparing the values.
Lib/compiler/pyassem.py
Tools/compiler/compiler/pyassem.py