Arguments against using @property() in Python - other than to replace an attribute.
I agree this is overused a lot. The other place I see it used where it seems reasonable because there’s no obvious alternative is to mark an attribute as read-only.
Arguments against using @property() in Python - other than to replace an attribute.
I agree this is overused a lot. The other place I see it used where it seems reasonable because there’s no obvious alternative is to mark an attribute as read-only.