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

Pythonic Alternative To Dict-style Setter?

People tend to consider getters and setters un-Pythonic, prefering to use @property instead. I'… Read more Pythonic Alternative To Dict-style Setter?

How To Manage Access To A Mutable Attribute In Python

In Python, we can use the @property decorator to manage access to attributes. For example, if we de… Read more How To Manage Access To A Mutable Attribute In Python

"@" Decorator (in Python)

Possible Duplicate: Understanding Python decorators What function does the 'class decorator&#… Read more "@" Decorator (in Python)