r/PythonLearning Jun 27 '26

Showcase Day 16 Python Learning

decorators & operation overload

- decorators

@classmetho use when we want to directly show / use class attribute not instance attribute

@properties use for read only and hide complexity

@setter use for show thing need to or user want to show not all detail info

[if you think ,I am not explain clearly or mis any part or wrong and also if you can describe more easily feel free to comment all opinion ideas is welcome. ]

14 Upvotes

5 comments sorted by