Skip to content Skip to sidebar Skip to footer
Showing posts with the label Properties

Is There Any Way To Create A Class Property In Python?

The following doesn't work for some reason: >>> class foo(object): ... @property .… Read more Is There Any Way To Create A Class Property In Python?

Overloading Operators On Python Properties

Is it possible to overload an operator on a python property? Something like: class Foo( object ): … Read more Overloading Operators On Python Properties