Array of functions, Pythonically

castironpi at gmail.com castironpi at gmail.com
Mon Feb 25 12:53:47 EST 2008


>  { '+': operator.add, '-': operator.sub, ... }

Then EXPR OPER EXPR -> ops[ OPER ]( EXPR, EXPR ), right?



More information about the Python-list mailing list