aharrisreid at googlemail.com
Tue Apr 20 15:43:53 CEST 2010
During my Python (3.1) programming I often find myself having to repeat
code such as...
class1.attr1 = 1
class1.attr2 = 2
class1.attr3 = 3
class1.attr4 = 4
Is there any way to achieve the same result without having to repeat the
class1 prefix? Before Python my previous main language was Visual
Foxpro, which had the syntax...
.attr1 = 1
.attr2 = 2
.attr3 = 3
.attr4 = 4
Is there any equivalent to this in Python?
Any help would be appreciated.
More information about the Python-list