• Fred Drake's avatar
    PathExpr._eval(): · 7e9bc113
    Fred Drake authored
        Very aggressively cache anything that involves a global lookup.
    
    restrictedTraverse():
        Only cache things once it's possible we might use them.  Use the
        cached getattr() in one plase where the global was being looked up
        again.  Cache hasattr() as well.  Only construct the marker (M)
        once, not once for each call.
    7e9bc113
Expressions.py 11.7 KB