Рет қаралды 19,644
How's it going everyone? Today we're going to be learning about a decorator in Python that can supposedly save us the trouble of defining the comparison dunder methods in our classes.
▶ Become job-ready with Python:
www.indently.io
▶ Follow me on Instagram:
/ indentlyreels
00:00 Learning Python made simple
00:05 Intro
00:25 Imports
00:37 What is @total_ordering?
01:56 Comparisons
05:13 Actually using @total_ordering
07:41 Important note #1
08:24 Important note #2
08:51 Where can you use this?
09:20 Do we really save time?
10:50 Summing it up