How to sort anything with Python - Talk by Reuven Lerner
Sorting is one of those things that we take for granted in Python. The built-in ""sorted"" function knows how to sort any iterable of objects that are themselves sortable.
But hiding behind that simple description is a great deal of depth. In this talk, I'll go deep into what it means to sort, and how we can sort any collection of Python data. We'll see how you can use custom functions to sort built-in data structures in new and interesting ways. And we'll see how you can design your own custom classes such that they will sort in just the way you want.
After watching this talk, you'll have a better understanding of sorting, built-in data structures, function objects, and how ""magic methods"" affect the our Python classes. Moreover, you'll be able to write clearer, shorter, and more easily understood code.
Presenter: Reuven Lerner
Event: EuroPython 2020
Talk released under the creative commons license.
Видео How to sort anything with Python - Talk by Reuven Lerner канала freeCodeCamp Talks
But hiding behind that simple description is a great deal of depth. In this talk, I'll go deep into what it means to sort, and how we can sort any collection of Python data. We'll see how you can use custom functions to sort built-in data structures in new and interesting ways. And we'll see how you can design your own custom classes such that they will sort in just the way you want.
After watching this talk, you'll have a better understanding of sorting, built-in data structures, function objects, and how ""magic methods"" affect the our Python classes. Moreover, you'll be able to write clearer, shorter, and more easily understood code.
Presenter: Reuven Lerner
Event: EuroPython 2020
Talk released under the creative commons license.
Видео How to sort anything with Python - Talk by Reuven Lerner канала freeCodeCamp Talks
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Working at Laravel PHPThe Mysterious Life of Web Apps in the BackgroundTypeScript Under the HoodAutomate your tasks with Python and publish with Chat AppsThings I wish I knew when I started building Android SDK/Libraries - Nishant SrivastavaAdvent of Code - Behind the ScenesHow to Become a Pentester - Talk by Jonathan HelmusReading Thoughts with JavaScriptType-safe, Full-stack React: Live-Coding a React + TS + GraphQL App with SwyxInternationalization in React - Talk by Naomi MeyerIntro to React - Talk by Cassie KoelschHow we recovered XXX,000 in Bitcoin from an encrypted zip file - Talk by Michael StayWelcome to Decentralized FinanceIs Redux Dead?The Post Jamstack World & the Rise of Hybrid FrameworksOffensive Maldocs in 2020OWASP Top 10 for Developers - Talk by Kris WallHow to make opportunities fall into your lap (with web scraping)Personality Hacking Using NLP and NodeC++20: An (Almost) Complete Overview - Talk by Marc Gregoire