Paul Boddie wrote:

> > I don't think I've ever seen anyone advocating calling a function like
> > getattr(obj "foo" + "bar")().
>
> >From Lib/compiler/visitor.py:
>
> meth = getattr(self.visitor, 'visit' + className, 0)
>
> Later on:
>
> meth(node, *args)
>
> Of course, you can drop the "visit" prefix and make the mechanism more
> predictable, but a search on the standard library for getattr produces
> a lot of evidence against your assertion.

if you read Jay's assertion in context, your "refutation" strikes me as
somewhat silly.

</F>



-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to