Contact: fumanchu@aminus.org

Log in as guest/dejavu to create tickets

Changeset 141

Show
Ignore:
Timestamp:
01/09/06 01:50:37
Author:
fumanchu
Message:

Gratuitous premature optimization.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/codewalk.py

    r140 r141  
    168168            name = 'visit_' + opname[op] 
    169169            name = name.replace('+', '_PLUS_') 
    170             if hasattr(self, name): 
     170            handler = getattr(self, name, None) 
     171            if handler: 
    171172                self.debug("=> %s%s" % (name[6:], repr(args))) 
    172                 getattr(self, name)(*args) 
     173                handler(*args) 
    173174     
    174175    def visit_instruction(self, op, lo=None, hi=None):