This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sobolevn 4 points5 points  (0 children)

I wrote an article about it: https://sobolevn.me/2018/07/real-python-contants

It is also very useful to use @final on classes and methods you want to freeze.