Trey Hunner
I’ve been writing and teaching Python for more than a decade, through articles, talks, conference tutorials, screencasts, and the tools I build for learners.
Writing
Python list comprehensions: explained visually
How to copy-paste your way from a
for loop to a list comprehension.
How things work
Opinions
Behind the scenes
Teaching and community
References
Everything else
Talks
pathlib: why and how to use it
PyCon US 2026. LWN.net wrote about this.
Python Oddities Explained
PyCon US 2022. If it looks like a bug, it might just be a misunderstanding.
Variables and objects in Python: it’s pointers all the way down
PyCascades 2026.
- Easier Classes: Python Classes Without All the CruftDjangoCon US 2018.
- Brains are Beautiful LiarsMy keynote at PyOhio 2024.
- Readability CountsPyCon US 2017.
- Systems, Gates, and RagePyCon US 2025 lightning talk.
Tutorials
I’ve taught 11 hands-on tutorials at PyCon US.
- 2026Lazy Looping in Practice preview
- 2025Decorators Demystified preview
- 2024Python for Programmers
- 2023Intro to Python for Brand New Programmers full recording
- 2022Python Metaprogramming
- 2021Hands-On Regular Expressions in Python full recording
- 2019Lazy Looping in Python
- 2018List Comprehensions and Generator Expressions
- 2017Hands-On Introduction to Python
- 2017Readable Regular Expressions
- 2016Readable Regular Expressions
Screencasts
I’ve published more than 200 videos on YouTube.
Projects
Whereabouts.Earth
Teaches you where every country is on a map, a few at a time, using spaced repetition.
Tools for Python programmers
- Date format finderPaste in a date and get the format code that parses it.
- Python REPLA full Python REPL in your browser, with nothing to install.
- Python PastebinShare Python snippets that run right on the page.
- Python glossaryPython terminology explained in plain English.
Open source
EditorConfig
Keeps coding styles consistent across editors, and it’s built into GitHub, GitLab, JetBrains IDEs, Vim, and Xcode, among others. I co-created it with Hong Xu, and it has grown well beyond the two of us.
django-simple-history
Stores a history of changes to Django models. I revived it in 2013 after it had been abandoned, and it’s now maintained by Django Commons.
countdown
A full-screen countdown timer for your terminal, handy for presentations and teaching.
dramatic
Makes Python display its output one character at a time, as if it’s being typed.
There’s more on my blog, my talks page, and my projects page.
Writing
Screencasts









