Set/Get attribute syntatic sugar

szport at fromru.com szport at fromru.com
Wed Jun 29 11:37:11 EDT 2005


> e = 'i_am_an_attribute'
> o.(e) = 10
> o.i_am_an_attribute == 10

Yes I mean this thing: to write

o.(e) = 10

or 

o.[e] = 10




More information about the Python-list mailing list