dynamic attribute syntax

castironpi castironpi at gmail.com
Sun Aug 17 16:15:07 EDT 2008


On Aug 17, 3:05 pm, Fredrik Lundh <fred... at pythonware.com> wrote:
> castironpi wrote:
> > 'obj.prop' has an easy access, but
>
> > att= 'prop'
> > getattr( obj, att )
>
> > is much clumsier, while no less useful, maybe more.
>
> maybe more?  ok, you *are* utterly and completely unable to post
> anything that makes any sense at all to anyone that uses Python.
> plonkeliplonk.

More constructive contributions on both sides there.  Good one.



More information about the Python-list mailing list