PyCon Pittsburgh. April 15-23, 2020. (original) (raw)

Talk: Comprehensible Comprehensions

Presented by:

Trey Hunner

Description

Finding list comprehensions incomprehensible? Having trouble figuring out when to use list comprehensions or just plain for loops? Are your coworkers overusing comprehensions?

Come to this talk and learn the how, when, and why of list comprehensions.

We’ll discuss:

Comprehensions are a unique tool for a unique task. Even if you dislike them, understanding how they work will help you better understand the Python code you find in the wild.

You’ll leave this talk with a better appreciation for both the use cases for comprehensions in Python and an understand of when not to use them.

Video

Watch on YouTube