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...
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. 🐐🚪
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...
"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...
Finally published a screencast that had been many months in the making... 📺 Recursion explained in 4 minutes ➿⏱ pym.dev/what-is-recu...
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/
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.
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.
Possibly useful for the tech folk out there: https://endoflife.date