Python - What does property() do ?
What is property()?
When reading Python code you may have seen the following:
class MyClass(object):
def __init__(self):
pass
@property
def do_something(self):
return True
The purpose of this function is to create a property of a class. A property looks and acts like an ordinary attribute, except