The Real Python Podcast cover image

Coding With namedtuple & Python's Dynamic Superpowers

The Real Python Podcast

00:00

Inline Comprehensions in Python

PEP 709 is called Inline Comprehensions and it proposes a change to how comprehensions get compiled in C Python. Currently when you use a list dictionary or set comprehension, a nested function gets compiled. What the PEP proposes is replacing this with inlined code instead. Benchmarks have shown that this can increase the speed of a comprehension by almost 2x.

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app