Building a function call?

Roland Heiber newstonne at
Wed Jul 13 15:24:25 CEST 2005

Peter Hansen wrote:
>> locals().get("dothat")(*c)

This was just meant as a quick example, not as production-level code ;)

Even with globals(), I think its a bit odd ..., but safer than using 
eval() ...

HtH, Roland

More information about the Python-list mailing list