This talk was given at PyCon US 2018 in Cleveland, Ohio.
Are you an intermediate python developer looking to level up? Luckily, python provides us with a unique set of tools to make our code more elegant and readable by providing language features that make your code more intuitive and cut down on repetition. In this talk, I’ll share practical pythonic solutions for supercharging your code.
Specifically, I’ll cover:
What magic methods are, and show you how to use them in your own code. When and how to use partial methods. An explanation of ContextManagers and Decorators, as well as multiple techniques for implementing them. How to effectively use NamedTuples, and even subclass and extend them! Lastly, I’ll go over some example code that ties many of these techniques together in a cohesive way. You’ll leave this talk feeling confident about using these tools and techniques in your next python project!
Slides
Tweets
#PyCon2018 was so amazing. It was such a joy to make so many new friends in the #python community. spent the weekend binge watching the talks @nnja Nina Zakharenko - Elegant Solutions For Everyday Python Problems - PyCon... https://t.co/sQO4hPZQ4V still is my favorite
— William Hakizimana (@willyhakim) May 22, 2018
Hell yeah @nnja! Packed hall for Elegant Solutions for Everyday Python Problems. #PyCon2018 https://t.co/X2BJowzhXs (Love that @ashleymcnamara art) pic.twitter.com/Ko8fOUspQu
— Jeremy Tanner (@Penguin) May 11, 2018
Sitting room only at @nnja’s talk at @pycon! Great Python coding tips! pic.twitter.com/DCHq2zNi9I
— Dan Taylor at #PyConUS (@qubitron) May 11, 2018
@nnja amazing elegant #python talk. I have no excuse left not to use v3, finally. 🤓https://t.co/twWmb7AkAV
— Rajinder Joat (@bloodyquantum) May 16, 2018
Minor PSA: the #pycon videos are up on YouTube!
— Jeremiah Lowin (@jlowin) May 13, 2018
One of my favorites is @nnja's talk on elegant Python: https://t.co/ZQils2B8NT
binge watching @pycon talks! Here are a few of my favorites so far:
— Alex Horth (@AlexHorth) May 20, 2018
- Dataclasses by @raymondh: https://t.co/GmusjExY8z
- Performance Python by @jakevdp: https://t.co/m3ZfaTMkcN
- Elegant solutions to everyday problems by @nnja: https://t.co/wQlI9WeoAN
More
Read my interview about Python and Microsoft from the event.
I wrote an indepth article diving into Part 1 of the talk on opensource.com
It was mentioned on a list of favorite talks from PyCon 2018
A Chinese language blog post provides a deep dive of the talk.