Tim Peters, author of the Zen of Python and Timsort, has died
Tim Peters, one of the most influential developers in Python’s history, has died. Guido van Rossum, Python’s creator, shared the news on November 11, 2026 in an In Memoriam post on the Python discussion forum, saying Tim died “earlier this year on July 15”. If you have ever typed import this, sorted a list in Python or written a doctest, you have used his work.
“It’s hard to overestimate Tim’s influence on Python,” Guido wrote. The post reached the Hacker News front page, and core developers and long-time community members added their own memories in the thread.
What he built
Guido’s post and the replies under it list a body of work that touches almost every Python program written today:
| Work | What it is |
|---|---|
| The Zen of Python (PEP 20) | The 19 short guiding principles printed by import this |
| Timsort (2002) | The sorting algorithm behind list.sort() and sorted(), later adopted by Java and Android |
| doctest | The standard-library module that runs examples in docstrings as tests; Tim wrote the first version |
| Core internals | Work on pymalloc, dict internals, generators, the float object and the math module |
| Big-number speedups | Karatsuba multiplication for Python’s arbitrary-size integers |
| Other modules | difflib, pickletools and tabnanny |
Guido also credits him with early advocacy for mixed int and float arithmetic, the behaviour that lets 1 + 2.5 just work. Neil Schemenauer, another core developer, described Tim’s work on pymalloc, the garbage collector, generators and dicts in his reply. Chris McDonough noted that Tim served as a director of the Python Software Foundation from 2001 to 2014.
On the Python mailing lists he was known as the “Timbot”, a nickname for the steady stream of answers he gave there.
The Zen of Python
PEP 20, created in August 2004 and credited to Tim Peters, is the one most developers know. It opens with “Beautiful is better than ugly” and “Explicit is better than implicit”, and the PEP notes there are 20 aphorisms, of which only 19 have been written down. You can read them in any Python interpreter:
import this
Lines such as “Readability counts”, “Errors should never pass silently” and “There should be one– and preferably only one –obvious way to do it” still come up in code reviews and style debates, more than twenty years after they were written.
What it means for developers
Tim’s work is less a library you install than a set of defaults you rely on without noticing:
- Sorting. Timsort is stable and fast on data that is already partly in order, which real-world data often is. That is why sorting a list of records by one key, then another, gives predictable results in Python, and why Java and Android picked up the same algorithm.
- Testing. doctest is still in the standard library and still a quick way to keep the examples in your documentation honest. Run
python -m doctest yourmodule.py -vto try it on a module with examples in its docstrings. - Style. The Zen of Python is the shortest explanation of why Python code looks the way it does. It is a good read for anyone learning the language, and a good tie-breaker in a code review.
Hugo van Kemenade, a Python core developer, quoted Tim’s last post in the thread: “the real world is more complicated than our clean abstractions hope for”. Diego Russo answered with a line from the Zen: “Now is better than never.”
If you are getting started with Python on the web, our guide to deploying a Django app on Heroku is one place to put those principles to work.