HackerTube.dev

Transforming Code into Beautiful, Idiomatic Python

Next Day Video · 1.1M views · 2013-03-21 · 48:51

Open on YouTube ↗

If playback is restricted in your region, try opening the original video. Use Mark watched to add it to your marked videos.

Overview

Raymond Hettinger's PyCon 2013 talk on transforming code into idiomatic Python through a series of before-and-after refactorings. It shows how to use iterators, dictionaries, named tuples and other language features well.

On Hacker News

HN treats it as a must-watch classic for writing Pythonic code, though somewhat dated for modern Python.

Recommended by 9 HN people across 9 months · HN mentions 2014–2022

Topics

Search by tags

What people said

jka · 2021-01 · Strong recommendation

Your mention of simple and clean code makes me think of the excellent talk "Transforming Code into Beautiful, Idiomatic Python". Although it relates to Python programming, if the ideas and principles (and thoughtfulness and pace) from it could be applied to much more written code, then (I think) we as an industry and all our users would be in a better place. [1] - [VIDEO]

Read the original HN comment ↗
bhoeting · 2017-11 · Strong recommendation

I've never heard of Raymond Hettinger before but I'm currently watching one of his videos [1] and it's amazing. Thanks for sharing your list, I'll definitely look up some more of these people. [1] [VIDEO]

Read the original HN comment ↗
clusmore · 2017-01 · Strong recommendation

Must watch: [VIDEO] I believe that the list comprehension will be faster than filter, but as always, any time you replace readable code with unreadable code for performance reasons, you damn well better time it.

Read the original HN comment ↗

Sources

Video by Next Day Video, played through YouTube.

Data and selection notes

HN summaries and labels may contain AI errors. HN dates refer to discussions, not video publication.

HN Library: HackerTube export (2026-10-31) and open-index/hacker-news. Upstream summaries and classifications may contain AI errors.

Views, duration and playback status refresh separately from the published catalog. When an update fails, existing data remains visible.

Selection checks
  • SaaS & AI candidates: Topic keywords do not match
  • Editor-approved picks: Editorial review is required

Rule matches identify candidates. They do not guarantee video quality or financial results.

About the library and its sources