I have an enum in Python, which I want to make sure that its values are unique. I see that there are 2 ways I can use to achieve it:
- Wrapping the class with @verify(UNIQUE)
- Wrapping the class with @unique
What is the difference with using each one of them? Which one should I use to gain the best performance?
Источник: https://stackoverflow.com/questions/780 ... s-in-pytho