Thursday, September 29, 2011

A is for Attribute!

>>> a = 'attribute'
>>> getattr(a, a, a)
'attribute'

1 comment: