def _bind_key(self, key, func):
        '''setup the mapping from key to call the function.'''
        if type(func) != type(self._bind_key):
            print "Trying to bind non method to keystroke:%s,%s"%(key,func)
            raise PyreadlineError("Trying to bind non method to keystroke:%s,%s,%s,%s"%(key,func,type(func),type(self._bind_key)))
        keyinfo = make_KeyPress_from_keydescr(key.lower()).tuple()
        log((keyinfo,func.__name__)%">>>%s -> %s<<<")
        self.key_dispatch[keyinfo] = func
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/site-packages/pyreadline/modes/basemode.py/BaseMode._bind_key/swapped operands of `%`