It’s a Pythonic maxim that “it’s easier to ask for forgiveness than permission” and Pythonic code is written with a strong preference for attempting an operation and raising exceptions as needed. This contrasts with many languages which take a “look before you leap” approach where conditions, types, and values are checked in advance.
This talk will show how and why Python’s approach is a strength, not a weakness, which makes Python more expressive and flexible. We’ll also see that raising exceptions is integral to Python, and underlies many common features of the language. Finally, we’ll look at some simple tests that show that the Pythonic use of exceptions usually is faster and more efficient than look before you leap checking in most cases, and we’ll also discuss a few situations where “look before you leap” might be preferred.
Python’s generator functions make it easy to create iterators — objects
which know how to behave inside of a “for” loop. But Python’s generators
offer two-way communication, letting us send data to an iterator between
iterations, changing or affecting the iterator.
In this session, we’ll explore these “coroutines,” and discuss how
thinking of them as in-program nanoservices can make it all clearer.
Along the way, we’ll talk about the iterator protocol, generator
functions, the “send” method, and the mysterious “yield from” keyword.
By the end of this session, you’ll not only understand coroutines, but
have a good sense of where and when you can use them.
Reuven M. Lerner, an independent consultant for more than two decades, teaches Python, data science, and Git to companies around the world. His Better developers newsletter and blog are read by thousands of Python developers each week. Reuven has written a monthly column, “At the Forge,” for Linux Journal since 1996 and is a panelist on the weekly Freelancers Show podcast. Reuven lives with his wife and three children in Modi’in, Israel, and can be reached at https://lerner.co.il/ or on Twitter at @reuvenmlerner.
Python Bytes is a weekly podcast hosted by Michael Kennedy and
Brian Okken. The show is a short discussion on the headlines and noteworthy news in the Python, developer, and data science space. In this live episode, Michael is joined by co-host Brian Okken and special guest Ines Montani.
Michael Kennedy is the host of the #1 Python podcast, Talk Python to Me. He’s interviewed many of the leaders and creators in the Python community and brings that perspective to all the courses he creates. He has been a professional software trainer for over 10 years.
We will develop code to generate simple mazes in Python and find paths in them to navigate from a starting node to a goal node. Along the way we will learn the fundamental search algorithms depth-first search, breadth-first search, and A*. The examples are from chapter 2 of Classic Computer Science Problems in Python.
GitHub provides a great platform for collaborating and maintaining open source projects. You can take it to the next level by creating custom GitHub bots.
Learn how the core Python team automated their workflow by building GitHub bots to help maintain one of the most popular open source projects, CPython.
Exploratory data analysis is a first brief look at your dataset which helps you understand its structure, form, size, and discover patterns. I’ll demonstrate a few common commands for EDA and will show a way how to run SQL statements in Pandas.
Olga Berezovsky is a Senior Data Analyst. She has extensive experience in the Big Data industry — specifically in data acquisition, transformation, and analysis — and deep expertise in building quantitative and qualitative user profile analysis that reveals user insights and behavior.
Caroline is an undergraduate student in Database, Data Scientist at ML Gomes, one of the founders of RefatorandoCast (a podcast on technology with strokes of history) and owner of the DevFriend channel with development tips and Neuroscience. She was co-organizer of Django Girls São Paulo and creator and instructor of the Python Programming extension course: Inserting women in technology at the Federal University of ABC. Now, she is a co-organizer of SciPy-Sampa and Ambassador of SciPy-Latin America in Brazil.
In the early days, Python gained a reputation as a scripting tool. As the language matured, it’s become so much more. In this short lightning talk I’ll cover five surprising and delightful things you probably didn’t know Python could do.
Nina Zakharenko is a Python developer with over a decade of experience and a passion for speaking and teaching. She currently focuses on Python at Microsoft on the Cloud Developer Advocacy team and is a newly elected board member of the Python Software Foundation.
The Live Coders
The Live Coders are a group of technologists who are also broadcasters. They write code and make things while teaching viewers on Twitch. They believe that live video is an amazing opportunity to teach, and want to share their expertise