[Python-Dev] Set the namespace free!

Xavier Morel python-dev at masklinn.net
Thu Jul 22 15:14:52 CEST 2010


On 2010-07-22, at 14:45 , Simon Brunning wrote:

> On 22 July 2010 15:04, Bartosz Tarnowski <bartosz-tarnowski at zlotniki.pl> wrote:
>> What should I do then, when the attribute is a reserver word?
> 
> You would use elem.getattr('param'). That's what it's for.
getattr(elem, 'param') I believe, rather than elem.getattr('param')


More information about the Python-Dev mailing list