Trey Hunner
banner
trey.io
Trey Hunner
@trey.io
Python & Django team trainer

I help folks sharpen their Python skills with https://PythonMorsels.com 🐍🍪

YIMBY. 95% vegan.
Reposted by Trey Hunner
Black Friday deals from indie tech educators are live on Diversify Tech!

Featuring @kulkarniankita.com, @marcysutton.com, @b0rk.jvns.ca, @joshwcomeau.com and more folks

Also: Techsgiving Summit 50% off today

See the full list here blog.diversifytech.com/black-friday-deals-for-tech-professionals
Black Friday Deals for Tech Professionals 2025 - Diversify Tech
It’s that time of year again! I’ve collected over 30 deals for software engineers, designers, and data professionals with a focus on indie educators and...
blog.diversifytech.com
November 28, 2025 at 6:35 PM
Reposted by Trey Hunner
Does anyone want a survivorship bias shortbread
November 29, 2025 at 4:50 AM
I've been happily using Kagi as my search engine for a while now. The search results are so much less noisy!

If you'd like to try 3 months free, DM me. They're doing a holiday promo where users can share a longer free trial with friends.
November 29, 2025 at 9:53 PM
I've only offered Python Morsels lifetime access ONCE before in 8 years.

If you're considering subscribing, consider lifetime access.

Only available through Monday.
Black Friday Deal: Python Morsels Lifetime Access
Pay once, get access for life.
pym.dev
November 29, 2025 at 7:04 PM
What's inside a Python Morsels subscription?

📹 235+ video lessons
✍️ 262+ hands-on exercises
🎯 500+ optional challenges
📚 303+ reference articles
🆕 New content added weekly

Get it ALL with lifetime access (ending Monday)
Black Friday Deal: Python Morsels Lifetime Access
Pay once, get access for life.
pym.dev
November 28, 2025 at 11:45 PM
Python Morsels Lifetime Access is here! 🎉

One payment, Python learning forever. No monthly fees, just continual improvement

I've only offered this once before.

Sale ends on Monday
Black Friday Deal: Python Morsels Lifetime Access
Pay once, get access for life.
pym.dev
November 28, 2025 at 7:04 PM
If you're looking to level-up your #Python skills, checkout my compilation of Python-related Black Friday sales.

I've updated the post with all the sales I've seen so far.
Python Black Friday & Cyber Monday sales (2025)
It’s time for some discounted Python-related skill-building. This is my eighth annual compilation of Python learning-related Black Friday & …
treyhunner.com
November 28, 2025 at 6:20 PM
Reposted by Trey Hunner
There’s a very surreal conversation I keep having on here where people seem unable to hold two ideas at the same time, and I’m not sure why. It’s simply true that the Big AI platforms like ChatGPT are:
1. Extremely bad for society, in many ways.
2. Very genuinely popular with lots of people.
November 18, 2025 at 4:59 PM
Just 10 minutes a day. That's all it takes to see noticeable progress in your Python skills.

Python Morsels makes it happen with personalized weekly routines.

Lock in lifetime access before Dec 1st
Black Friday Deal: Python Morsels Lifetime Access
Pay once, get access for life.
pym.dev
November 26, 2025 at 7:04 PM
This is the week of the year (in the US) where "pie hole" is a somewhat suitable term for the mouth.

Also our house smells delicious right now. 🥧
November 26, 2025 at 4:18 AM
Stack Overflow is great for fixing today's bug, but what about the Python knowledge gaps you don't know you have?

Python Morsels gives you structured weekly practice to level up systematically, not reactively.

Lifetime access is available now through Dec 1st
Black Friday Deal: Python Morsels Lifetime Access
Pay once, get access for life.
pym.dev
November 25, 2025 at 11:45 PM
Reposted by Trey Hunner
I am working on a list of Black Friday/Cyber Monday deals for the Diversify Tech newsletter!

If you have anything for Software Engineers, Designers and Data professionals, please let me know!
November 25, 2025 at 4:22 PM
We don't really need those names, but the purpose of those numbers is easier to guess about and much easier to look up when we use variable names. Read more �‘‰ https://trey.io/nb3z3t #Python
November 25, 2025 at 3:13 AM
Reposted by Trey Hunner
Today’s xkcd made me cry.

In a good way.

xkcd.com/3172/
November 24, 2025 at 11:46 PM
Are you a #Python user and a lifelong learner?

I've just published my 8th annual list of every Python-related Black Friday / Cyber Monday sale I'm aware of.
Python Black Friday & Cyber Monday sales (2025)
It’s time for some discounted Python-related skill-building. This is my eighth annual compilation of Python learning-related Black Friday & …
treyhunner.com
November 24, 2025 at 4:41 PM
Think of Python Morsels as a gym membership for your Python skills. Small amounts of consistent work build up to noticeable progress.

It's usually an annual subscription, but you can get lifetime access through Dec 1st.
Black Friday Deal: Python Morsels Lifetime Access
Pay once, get access for life.
pym.dev
November 24, 2025 at 4:02 AM
Reposted by Trey Hunner
I needed to see which packages were pulling in six.

Two ways:

- uv tree --package six --invert → quick “who depends on this?” from uv.lock

- uv pip tree --package six --invert --show-version-specifiers → more pipdeptree-style, constraint-aware view from the actual env
November 23, 2025 at 1:00 PM
I'm announcing the Black Friday sale for Python Morsels a week early this year.

Lifetime Access to Python Morsels
Python Morsels Lifetime Access Sale
If you code in Python regularly, you’re already learning new things everyday. You hit a wall, or something breaks. Then you search around, …
treyhunner.com
November 22, 2025 at 3:37 AM
You should define dunder methods on your classes in Python, but you shouldn't call dunder methods. Read more �‘‰ https://trey.io/p0h32w #Python
November 22, 2025 at 1:26 AM
Python's f-strings immediately interpolate the expressions within their replacement fields (the bit between the curly braces). Read more �‘‰ https://trey.io/n4mlgb #Python
November 21, 2025 at 1:26 AM
Reposted by Trey Hunner
Anyone see a good definition for AI hallucinations that explains it well for people who are non-technical? If you do, please forward it to me! Thank you! 🙏
November 20, 2025 at 3:06 PM
I released a new version of uvrs that includes commands to run pip and to launch a Python REPL for a given script.
GitHub - treyhunner/uvrs: Create and run uv scripts with POSIX standardized shebang line
Create and run uv scripts with POSIX standardized shebang line - treyhunner/uvrs
github.com
November 19, 2025 at 10:42 PM
What online #Python communities would you most recommend?

For someone new to Python?

For someone using Python but not yet tapped into a community? (outside of their work place / friends)
November 19, 2025 at 8:33 PM
Anyone know a site where I can enter a location and it'll tell me all these:

• IANA Time Zone Identifier (America/Los_Angeles)
• Legacy Country/Region Alias (US/Pacific)
• Specific Timezone Abbreviation (PST or PDT)
• Generic Timezone Abbreviation (PT)

Bonus points if it can convert between them.
November 19, 2025 at 5:52 PM
The strftime method does the opposite of strptime: it converts datetime objects to strings, allowing us to specify the format we'd like to use during that conversion. Read more �‘‰ https://trey.io/l4b84k #Python
November 19, 2025 at 1:26 AM