BLUE
TH
Trey Hunner
@trey.io
Python & Django team trainer I help folks sharpen their Python skills with PythonMorsels.com 🐍🍪 YIMBY. I'm trying to eat more ethically.
174 followers62 following20 posts
THtrey.io

Yup. I believe they were inspired by the pylint rules for this which I believe were inspired partly by this article a few years ago. 😜

0
THtrey.io

A few unnecessary Python comprehensions for you: new_list = [x for x in old_iterable] new_dict = {k: v for k, v in old_dict.items()} Those are equivalent to: new_list = list(old_iterable) new_dict = dict(old_dict) More on overusing comprehensions in #Pythontreyhunner.com/2019/03/abus...

1
THtrey.io

The cat needs 2 pill pockets for his 2 pills, but he seems to be associating pill pocket smell with the taste of pills. 💊😾 Maybe we should give him 3, with a treat in one. But when he's about to pick one we'll open up one of the others to reveal a pill and ask if he'd like to switch his choice. 🐐🚪

1
THtrey.io

My favorite ongoing Monty Python nod within the #Python community is the "And now for something completely different" section in release announcements. Whether whimsical, mind-blowing, or sober, I appreciate getting a glimpse of the release manager's personality. 💓 www.python.org/downloads/re...

0
THtrey.io

"loanword is a calque and calque is a loanword" I'm a sucker for edutainment videos with a clever punchline #linguistics www.youtube.com/watch?v=TFpz...

0
THtrey.io

Finally published a screencast that had been many months in the making... 📺 Recursion explained in 4 minutes ➿⏱ pym.dev/what-is-recu...

0
Reposted by Trey Hunner
HShynek.me

Great LWN summary (as usual) of PEP 703: CPython without a global interpreter lock The work Sam has put into nogil remains absolutely astounding to me. https://lwn.net/SubscriberLink/940780/c9421ad77b8faedf/

0
THtrey.io

Anyone know of a CLI tool for visualizing every function call within Python's call stack? I'm not looking for https://pythontutor.com (which is great) but for a terminal-based tool.

1
Reposted by Trey Hunner
Eebthen.bsky.social

I'll keep asking people. If you care about Disability Justice: Stop Sharing Images That Don't Have Alt Text*. If it was your friend who posted it, tell them you'd love to share it but you can't because it doesn't have alt text. It's not shaming and it's not mean.

1
Reposted by Trey Hunner
SLsnipe.lol

Possibly useful for the tech folk out there: https://endoflife.date

0
TH
Trey Hunner
@trey.io
Python & Django team trainer I help folks sharpen their Python skills with PythonMorsels.com 🐍🍪 YIMBY. I'm trying to eat more ethically.
174 followers62 following20 posts