veronica, to python
@veronica@mastodon.online avatar

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.

o76923, to python
@o76923@kitty.social avatar

I still think it's nuts that 's best solutions for rendering 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.

CyrilBrulebois, to python
@CyrilBrulebois@mamot.fr avatar

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.”

ramikrispin, to python
@ramikrispin@mstdn.social avatar

(1/5) 𝐇𝐚𝐩𝐩𝐲 𝐒𝐚𝐭𝐮𝐫𝐝𝐚𝐲! ☀️
Here are a few steps you can take to reduce your Python 🐍 image size 👇🏼

TLDR - Using slim image and multi-stage build

#mlops #python #datascience #docker

brainwane, to python
@brainwane@social.coop avatar

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.

http://harihareswara.net/posts/2024/references-pycon-us-keynote/

#PyConStories

davidhewitt, to rust

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).

https://polar.sh/davidhewitt/posts/hello-world-and-the-future-for-pyo3

glyph, (edited ) to random
@glyph@mastodon.social avatar

Python 3.12.3 came out a few days ago, and that means it's time for my favorite infrequently-run shell command: https://pypi.org/project/MOPUp/

ethantyping, to python
@ethantyping@hachyderm.io avatar

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.

Please boost for spread!

https://nvidia.wd5.myworkdayjobs.com/en-US/NVIDIAExternalCareerSite/job/Senior-System-Software-Engineer---Open-Source-Python-Ecosystem_JR1981378

#python #opensource #getfedihired #fedijobs

bbelderbos, to python
@bbelderbos@fosstodon.org avatar

@treyhunner does a deep dive of #Python's many command-line utilities. 🙏 🔥

First of all it's good to know that you can use -m to run a Python module as if it were a script 💡

There are some nifty ones like inspect / json.tool / zipapp. You'll surely pick up new ones ... 💪

ThePSF, to python
@ThePSF@fosstodon.org avatar

There are still a few days left to take advantage of the latest 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🐍❤️

https://www.humblebundle.com/books/dive-into-dev-ops-no-starch-books

https://www.humblebundle.com/books/dive-into-dev-ops-no-starch-books

hugovk, to python
@hugovk@mastodon.social avatar

🎉 We just had 3 successful core dev votes in parallel!

Each dev focuses on different yet important areas, reflecting the size & breadth of the CPython project.

Please give a big welcome to:

🍏 @freakboy3742 added iOS support ()
https://discuss.python.org/t/vote-to-promote-russell-keith-magee/53821

🐛 Tian Gao works on the pdb debugger
https://discuss.python.org/t/vote-to-promote-tian-gao/53895

🏎️ @mdboom works on benchmarking in the Faster CPython team
https://discuss.python.org/t/vote-to-promote-michael-droettboom/54227

That's 5 new so far this year, same as last year 🚀
https://hugovk.github.io/python-core-devs/by-year.html

nekohayo, to python
@nekohayo@mastodon.social avatar

Did you know there's a cool little #Python + #GTK #libadwaita #weather forecasting native desktop application for #Linux, called #Mousam ?

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)… 🤞👀

https://github.com/amit9838/mousam/issues/130

nedbat, to python
@nedbat@hachyderm.io avatar

Nested loops can sometimes be replaced by one itertools.product() from the #Python stdlib:

underdarkGIS, to windows
@underdarkGIS@fosstodon.org avatar

Note to self: Between versions 3.34.5 and 3.34.6, the packaging for the version of QGIS changed from 3.9 to Python 3.12.

Will have to test if/how is affected

HT: https://gitlab.com/Oslandia/qgis/qduckdb by @oslandia

pyOpenSci, to KindActions
@pyOpenSci@fosstodon.org avatar

💜 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

Questions? Drop 'em in the comments below!

Learn more: https://www.pyopensci.org/blog/pyos-call-for-editors-may-2024.html

pyohio, to python
@pyohio@fosstodon.org avatar

🎉 PyOhio Registration Is Open! #PyOhio is a FREE #Python conference this July 27-28th in #cleveland, #Ohio

https://www.pyohio.org/2024/attend/registration/

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!

leahawasser, to python
@leahawasser@fosstodon.org avatar

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 packaging ecosystem / data science ecosystem! let me know what you think. 💗

https://www.pyopensci.org/blog/python-packaging-friends-dont-let-friends-package-alone.html

nedbat, to python
@nedbat@hachyderm.io avatar

Mostly you shouldn't subclass 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:

retiolus, to python
@retiolus@mamot.fr avatar
ThePSF, to python
@ThePSF@fosstodon.org avatar

We want your vote! Every voting-eligible PSF Member (Supporting, Managing, Contributing, and Fellow) needs to affirm their membership to vote in this year’s Board election to ensure that we meet quorum as required by our bylaws 🗳️
https://pyfound.blogspot.com/2024/06/affirm-your-psf-membership-voting-status.html

upmultimedia, (edited ) to random
@upmultimedia@mastodon.gamedev.place avatar

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?

#c

hugovk, to python
@hugovk@mastodon.social avatar

I just kicked off PyCon 2024 with the first talk of the Language Summit (and my first talk at PyCon!): "Should Python adopt CalVer?" It was an interesting discussion, let's see!

The view of the language summit from the lectern.

hugovk, to python
@hugovk@mastodon.social avatar

🐍🧪 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:

https://dev.to/hugovk/help-us-test-free-threaded-python-without-the-gil-1hgf

dcz, to rust
@dcz@fosstodon.org avatar

Trying to write a exploration tool. I've been putting it away because GUIs are painful.

Now trying again: looks fine, but not clear how to style tables.

Maybe I'll go back to . The idea of callbacks can be annoying, but at least styling is a breeze. You can even put widgets inside cells!

It turns out that making GUI is hard.

phildini, to python
@phildini@wandering.shop avatar

Oh this is extremely handy... someone on the #python core team seems to be really focusing on CLI utilities and I love this
https://mastodon.social/@treyhunner/112554261035770847

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • provamag3
  • GTA5RPClips
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • Leos
  • anitta
  • cisconetworking
  • megavids
  • lostlight
  • All magazines