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
Binary search in Python with bisect
Starts with a number-guessing game you play in the article, then gets into how bisect works.
The new REPL in Python 3.13
Shows what’s new with terminal recordings, written the day the feature froze.
Python list comprehensions: explained visually
Uses color to show how a loop turns into a 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 talk and then asked me to write for them.
Python Oddities Explained
PyCon US 2022. Uses surprising Python behavior to explain how the language works.
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. On making code easier to read.
- Systems, Gates, and RagePyCon US 2025. A lightning talk, for when I only get 5 minutes.
Tutorials
I’ve taught 11 hands-on tutorials at PyCon US since 2016.
- 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.
countdown
A full-screen countdown timer for your terminal, handy for presentations and teaching.
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.
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.
Screencasts








