Any Qt + Python devs out there with any experience on calling deleteLater() from the Python side?
I have some costly dialogs I want cleared on close, and so far I've been running deleteLater() in the closeEvent, which is clearly a little risky. I do get the very rare segfault especially if I close one particular dialog which has a QTimer singleShot call. If the deleteLater() is called when it is running, I get a RunTImeError.
I still think it's nuts that #Python's best solutions for rendering #SVG are a bunch of wrappers around CairoSVG with the two next best solutions being use Inkscape from the command line and wand, a wrapper around ImageMagick.
Just reminded that #Python's considerations to anything packaging-related is a trashfire: deprecating distutils, including distutils.version, pointing to an external module that provides “Reusable core utilities for various Python Packaging interoperability specifications.”
Here is a blog post with links and references to accompany my closing keynote today at #PyConUS , on stories from a few years working on #Python packaging.
I've started a blog! This first post is a mixture of a "hello world" and a summary of what I'm thinking of next for PyO3 (hint: stronger community network).
Extremely excited to share my team at NVIDIA is hiring for a full time role working on ✨ open source Python packaging projects ✨ like Warehouse, pip, and more!
If you are or know someone excited about open source Python development, especially focusing on open source packaging projects, please take a look! And if you have any questions for me, please reach out.
There are still a few days left to take advantage of the latest #HumbleBundle package from @nostarch: Dive into DevOps!
You can pick up 5 great titles for just $1, or go up to $35 for all 22 items in this "indispensable IT library".
Either way, be sure to use "Adjust Donation" to choose how much of your purchase goes to the PSF🐍❤️
Seems like it was started a year ago. I just discovered it now, and am somewhat impressed by how much detail it provides (including Air Pollution / Air Quality Index).
So of course I filed my ponies-on-rainbows enhancement request to suggest an interactive stacked graphs representation (like a certain website I use, shown below)… 🤞👀
💜 We would love nothing more than to have you join our ever-growing community of volunteers! We're currently expanding our editorial board, and could use your help.
Volunteer editors:
🔍 find reviewers
👷♀️ oversee the review process
🌸 support submitters
✅ determine package acceptance
Join us to connect with folks who use Python in a vast number of ways: to solve problems around them, or make the world just a bit nicer or more fun, or just to make something small and lovely! If you’ve never programmed before, this is a great chance to see what you can do with Python. If you’ve used it for years, it’s a great chance to see different approaches!
i wrote another blog post on my personal experiences with packaging as a teacher, a user and a maintainer. And how giving a tech talk on a big stage felt! (hint: scary!)
i'm curious if others have experienced imposter syndrome and/or challenges navigating our #python packaging ecosystem / data science ecosystem! let me know what you think. 💗
Mostly you shouldn't subclass #Python built-in types. But if you do, dict subclasses can define missing: it's called when a key is missing. Instead of hiding a dict in a function as a cache, how about hiding a function in a dict!? A Fibonacci dictionary:
When programming a function to check if something is allowed, is it a better pattern to start with a True variable and negate it or start with a False variable and confirm it?
🐍🧪 Python 3.13.0 is due out in October 2024 and work is underway to implement experimental support for PEP 703 "Making the Global Interpreter Lock Optional in CPython".
As the Steering Council noted in their acceptance of the PEP, to succeed it's important to have community support.
I wrote a little guide on how you can help test out the beta in your project, and help us find bugs in CPython: