Python properties (or attributes) are dynamic. : Property : Class PYTHON TUTORIALS


PYTHON TUTORIALS » Class » Property »

 

Python properties (or attributes) are dynamic.


class MyClass :
    x = 1

me = MyClass()
print me.x
me.y = 2
print me.x
print me.y



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Class
» Property