Hi, I am trying to replace the eval() in the following code:
def myfunc(type, table): module = __import__(type) type = 'module' + '.' + type obj = eval(type) return obj(row[table.c.name], row[table.c.handle]) I am out of ideas. Any hints? Thanks, -Samuel -- http://mail.python.org/mailman/listinfo/python-list