Help in using introspection to simplify repetitive code
jsceballos at gmail.com
jsceballos at gmail.com
Mon Aug 21 05:12:47 EDT 2006
As you mention, wether the methods take arguments or not is something
to have into account.
And they do take arguments, and a variable number of them, so AFAIK
hooking with __getattr__ or __getattribute__ will not work, as you can
only get the method name with that. I was thinking of some __call__
overriding, but I've never done it before and I don't know if this
could be the way to go.
--
Un saludo,
Javier
More information about the Python-list
mailing list