dynamic attribute syntax

Fredrik Lundh fredrik at pythonware.com
Sun Aug 17 16:05:29 EDT 2008


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 information about the Python-list mailing list