Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the depths of Python sorting in this 30-minute EuroPython 2020 conference talk. Dive into the intricacies of the built-in "sorted" function and learn how to sort any collection of Python data. Discover techniques for using custom functions to sort built-in data structures in novel ways, and design custom classes that sort exactly as intended. Gain a deeper understanding of sorting, built-in data structures, function objects, and the impact of "magic methods" on Python classes. Learn to write clearer, shorter, and more easily understood code through topics such as Timsort, custom sorting with "key", stable sorting, sorting lists of dictionaries and named tuples, and making objects sortable. Suitable for intermediate-level Python programmers familiar with writing functions, classes, and methods.