Getting lazy with decorators

Peter Otten __peter__ at web.de
Tue Jun 26 03:03:45 EDT 2012


Peter Otten wrote:

>>>helpfunc = getattr(self, "do_" + name[5:]).help
> 
> i. e. it looks for getattr(self, "do_help") which does exist and then

Sorry that should be getattr(self, "do_done").





More information about the Python-list mailing list