Open kain88-de opened 8 years ago
I want to access a data member with treant.data.x instead of treant.data['x']. That would add some convenience and is possible with the __getattr__ magic function.
treant.data.x
treant.data['x']
__getattr__
I want to access a data member with
treant.data.x
instead oftreant.data['x']
. That would add some convenience and is possible with the__getattr__
magic function.