Building a function call?

Roland Heiber newstonne at web.de
Wed Jul 13 09:24:25 EDT 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