I've updated my new pathlib article with additional examples, improved wording, and more links to documentation. ✨ One nice thing about finally publishing in text form: folks happily provide (frequently) constructive feedback so I can immediately iterate. 💗 #Python #pathlib
I've been enjoying "uv tool" as a pipx replacement, but I hadn't looked into uvx. 💡 uvx is a way to play with a #Python CLI tool without installing it. $ uvx --from strptime-cli strptime $ uvx --from dramatic python -m dramatic $ uvx names Or jump into a virtual environment with a package pre-installed: $ uvx --from requests python -q >>> import requests
Context managers do sandwich our block of code between two steps, but they also ensure that the exit step is performed regardless of whether an exception occurred. Read more 👉 #Python
I've finally written a pathlib cheat sheet & sales pitch combination post. ✨ Another many-year-old to-do list item done. ✅ If you've been looking for a post to link your pathlib-curious/confused coworkers to, I'm hoping this will help. 🔗 #Python #pathlib
PEP idea from April 1 💡 Support for importing EVERYTHING: from * import * #Python
When I find myself wondering what a specific #Python object is all about, there are 4 functions I reach for: 1. type 2. help 3. dir 4. vars More on inspecting Python objects:
Today I completed my annual ritual of checking whether I've created my PyCon account yet with any of the emails that exist in my password manager from past PyCon years. 😅 I could probably train my password manager to understand the year after the domain... but then I would lose this unusual ritual. 😆
"Mutation changes an object, which any number of variables may be pointing to." Read more 👉 #Python
Trying to decide which tutorial ideas to submit to #PyConUS 2025. Which of these 3 hour #Python tutorials would you want to work through at PyCon?
Our brains have at least two modes: one where we're focused deeply on a problem and one where our mind is wandering. Read more 👉 #CodingChallenge #Python