Is this considered black magic?

Paul Rubin phr-n2001d at
Sun Nov 11 18:29:17 CET 2001

Laura Creighton <lac at> writes:
> But is it white, grey, or black magic?  Is there a better way I should have
> done?  Suggestions on what to name the function gratefully welcomed.

Use getattr to find the method, then apply it.

More information about the Python-list mailing list