
I no longer use this platform. 💌: https://xitter.cf/t.co/3UeMsKYcya 🐘: @treyhunner@mastodon.social 🦋: https://xitter.cf/t.co/HrIl3uLbbd 💼: treyhunner
San Diego, CA
Joined February 2014
- Tweets14.5K
- Following430
- Followers21.7K
- Likes17.4K
Pinned Tweet
I have finally decided to abandon this platform completely. 👋
You can find me on other social media platforms:
🦋bsky.app/profile/trey.io
🐘mastodon.social/@treyhunner
💼linkedin.com/in/treyhunner
📺youtube.com/@PythonMorsels
And in my weekly Python tip emails:
💌pym.dev/newsletter
Python 3.15 is out! 🐍🎉
A few of my favorite new features:
• UTF-8 default encoding on Windows (boring but big)
• profiling.sampling!
• lazy import json
• [*x for x in nested]
• sentinel()
• frozendict
• pprint(data, expand=True)
More 👇
youtu.be/OD0QObnCZmA
Prefer to read instead of watch a video?
I made an article version too: pym.dev/python315/
This is nowhere near all the changes in Python 3.15. It's just a sampling of my personal favorites
Python Morsels now includes Daily Recall: a spaced repetition system for Python learning! 📣
I've been talking about this idea for YEARS, dogfooding it for months, and now it's finally live. 🎉
treyhunner.com/2026/09/pytho…
Trey Hunner retweeted
My concern for the AI era, or at least this phase of it, is that a generation is being taught that "close enough" is just fine.
Take @AnthropicAI for example. Text wrapping in Claude Code has been broken for weeks. Superfluous spaces appear on the left edge. One engineer to another: you know its an out by one error.
I refused to believe that nobody has noticed this. The shtick they are selling is that AI can fix this kind of thing. Either they tried to prompt a fix, and Claude ain't good enough to fix an out-by-one error. Or they haven't attempted it because it is "close enough".
It can't be the case that AI is only good enough if we lower our standards. It can't.
I'm well aware I have both feet firmly planted in my "grumpy old man" phase of life...
Whereabouts now includes a daily country-guessing game.
Thanks to the friends & internet acquaintances who've been testing this out over the past week or so.
🗺️ May 7, 2026
5/5 countries in 7/13 guesses
🟩🟩🟩🟩🟧
#Whereabouts
whereabouts.earth/daily/
My blog post on how to have a great first #PyConUS now has an audio version.
You might want to download it before you head to the airport or start your drive to @pycon.
See you at PyCon! 💜
trey.io/first-pycon
It's Earth Day & I have a side project to announce. 🌏
Whereabouts.Earth is a fun app for learning the location of every country on Earth. My geography knowledge has improved a LOT over the past week thanks to it.
Feedback very welcome! 💖
Happy #EarthDay
First PyCon US. Hotel lobby. A card game I'd never heard of.
Trey Hunner pulled me in, taught me #Cabo, and I won three rounds in a row.
The hotel lobby at PyCon US has its own lore. It starts the moment you check in.
#PyConUS | Long Beach, CA us.pycon.org/2026/venue/hote…
#Python
Book in the official #PyCon2026 hotel block and get a mystery swag item.
We can't tell you what it is.
(That's why it's called mystery swag.)
Only way to get it is to book in the block.
us.pycon.org/2026/venue/hote…
#Python
I met Thomas Wouters in the hotel lobby. We talked about Python, community, the people who make it what it is.
Three days later he was called on stage as a Distinguished Service Award recipient. He gave no hint.
#PyConUS | Long Beach, CA us.pycon.org/2026/venue/hote…
#Python
Loop smarter, not harder! Join Trey Hunner at #PyConUS 2026 for the tutorial "Lazy Looping in Practice: Building and Using Generators and Iterators" on May 13th & master #Python's iteration system from the ground up us.pycon.org/2026/schedule/p…
Register now: us.pycon.org/2026/accounts/d…
Trey Hunner retweeted
Are you going to #PyConUS? Have you booked in our hotel block? New on the blog, some hard numbers & why we’re in a tight spot. We only have until April 24th to turn the tide, so please read, share, and book your PyCon US stay in the official block today.
pyfound.blogspot.com/2026/04…
Come to #PyConUS so I can teach you my favorite card game!
Also come to meet a couple thousand wonderful folks who also happen to use #Python and who would love to meet you.
See you in May!
First PyCon US. Hotel lobby. A card game I'd never heard of.
Trey Hunner pulled me in, taught me #Cabo, and I won three rounds in a row.
The hotel lobby at PyCon US has its own lore. It starts the moment you check in.
#PyConUS | Long Beach, CA us.pycon.org/2026/venue/hote…
#Python
Trey Hunner retweeted
While I'm still here, let me exercise my freedom of speech (which I know doesn't actually exist on Twitter).
America was born out of a revolution against a capricious, arbitrary king. Once again we find ourselves struggling under an autocratic, unaccountable leader wanting to be a "king". So is it really too much to compare the situation to earlier revolutionary times and ask for an overthrow of his regime? The constitution is on my side.
I will be sharing 365 #Python tips this year, one for every day in 2026.
These tips will be shared on Bluesky, on Mastodon, and via email. 💌
To follow along daily, follow me on Bluesky or Mastodon.
To follow along weekly, subscribe to my newsletter: pym.dev/newsletter
You can find all 365 tips I post to Mastodon at mastodon.social/@treyhunner/…
No need to sign up for an account to read them.
I'll be posting a new one each day.
To my newsletter each week, I'll share a summary of the prior week's tips with links to each.









