Tootfinder

Opt-in global Mastodon full text search. Join the index!

@davidbody@fosstodon.org
2025-09-16 17:51:21

The new Python documentary is good. Definitely worth watching if you think you might be interested. It's on YouTube.
#python #programming #history

@frankel@mastodon.top
2025-10-10 08:05:02

#Python 3.14.0
python.org/downloads/release/p

@mgorny@social.treehouse.systems
2025-09-13 06:46:53

So #Zope released new versions of their packages, with pkg-resources style namespace removal.
Totally normal way to do the bumps:
1. At first, keep the existing testing hack (writing `__init__.py`).
2. Notice that the next package fails because it expects test paths relative to `zope` subdirectory. Skip it for now.
3. While doing the next package, realize you could remove that hack and simply run tests within the `zope` subdirectory! Go back and update all the previous packages, including the one that failed before.
4. Back to bumping. Notice that in the very next package you've had an even better solution: instead of `cd`, you just called `python -m unittest -s …`. Go back and update all the previous packages.
5. Back to bumping. The very next package turns out to actually expects test paths relative to the top-level site-packages directory. Well, you can use a hybrid of the `__init__.py` hack with `python -m unittest -s …`.
#Gentoo #Python

@hynek@mastodon.social
2025-10-06 14:06:25

I’m somewhat exhausted to announce attrs 25.4.0!
The main reason for this release (and why it's published today) is that it ships the first pieces of work for Python 3.14 and PEP 749. There will be more work required and there's going to be a lot more churn once everyone starts testing 3.14 earnestly. We hope to receive more feedback before spending more time on this. #Python

@frankel@mastodon.top
2025-09-08 15:27:43

What Are #Python Asterisk and Slash Special Parameters For?
realpython.com/python-asterisk

@chrysn@chaos.social
2025-11-05 09:49:08

A feature which I'm really looking forward to is brewing in #Python packaging: Specifying default extras.
The aiocoap library I maintain can (and is tested to) work with no other dependencies than Python, but most users will like the additional features such as pretty-printing support, or more security options than just TLS. So far, they have to `pip run --spec "aiocoap[all]" aio…

@unixorn@hachyderm.io
2025-10-11 14:21:30

Released v0.22.0 of the ha-mqtt-discoverable #python module.
New features: Lock devices
Thanks again to Steffan for all his work on the module.
#homeassistant @… @…

@frankel@mastodon.top
2025-09-09 08:03:00

#Python is Dying and Nobody Wants to Admit It
medium.com/codeelevation/pytho

@carloshr@lile.cl
2025-09-10 19:41:57

Por la pega estoy haciendo un curso de #Python orientado a «Ciencia de Datos» y si bien no estš tan bueno como esperaba, el material y lo tips que he conseguido es lo mas interesante. Esto es justamente lo que quiero aprender.

@tinoeberl@mastodon.online
2025-10-31 17:18:45

Die #Python Software Foundation hat eine #Förderung von 1,5 Millionen US-Dollar durch die US-Regierung abgelehnt, da sie an Auflagen gegen #Diversität und

@UP8@mastodon.social
2025-09-24 13:44:44

🧵 Scaling asyncio on Free-Threaded Python
#python

@mgorny@social.treehouse.systems
2025-11-13 13:27:48

< ionen> I feel like I'm updating uv/uv-build more often than I use it and it takes like 10000x longer to build than the package I use it for
Who would have thought that the #RustLang fad will make people force others to install humongous tools that don't bring any benefit to them.
#Python #PEP517

@khalidabuhakmeh@mastodon.social
2025-08-18 13:18:52

“50% of Python practitioners who took the JetBrains survey have less than 2 years of professional experience.”
I might have a chance to transition from #dotnet to #python as a geriatric junior. 🤣

@rasterweb@mastodon.social
2025-10-03 19:20:09

I learned about PsychoPy which is an open-source package for running experiments in Python (a real and free alternative to Matlab).
Anyone using it?
#python

@Gord1i@fosstodon.org
2025-10-09 07:02:16

@… and @… let's goooo!!!! It's hybrid, so there is still time to join online
#python

Modular PyConZA and PyConAfrica badge with super cool speaker attachment
@neverpanic@chaos.social
2025-10-08 06:15:12

Also yesterday at #OpenSSLCon25: Alex Gaynor of #Python #Cryptography saying their own X.509 parser written in Rust is six times faster than

@veit@mastodon.social
2025-08-25 14:30:37

We have finally documented Ruff – the tool greatly simplifies static code analysis for Python projects: #Python

@michabbb@social.vivaldi.net
2025-10-05 17:10:49

🎤 Create custom voice agents in under 10 minutes using #Python with STT, LLM and TTS pipelines like #Deepgram, #OpenAI GPT-4o and

@chrysn@chaos.social
2025-09-10 11:41:04

I'm fixing #aiocoap's memory leak tests to finally run as async functions: the original tests employed mechanisms from the age of tulip (back when asyncio was developed out-of-tree), and Python 3.14 dropping some obsolete mechanisms.
Good riddance, but also tough work fixing subtle possible leaks that are suddenly easier to discover.

@iam_jfnklstrm@social.linux.pizza
2025-09-04 11:43:10

Älskar felmeddelanden i Windows. På en svensk installation får jag följande felmeddelande. Nån som kan gissa vad det betyder (jag fårstår åtkomst nekad), men det kyrilliska/arabiska? #powerbi #python #felmeddelande

Ett felmeddelande som delvis står på svenska och delvis på ett främmande språk
@hynek@mastodon.social
2025-11-02 08:19:15

#SlowHorses
🤝
#Python

Pseudo hacker TV nonsense featuring Python code
@stsquad@mastodon.org.uk
2025-10-01 19:07:27

The #python library that we #qemu developers use for the test harness. Now with support for 3.14. Useful for deep tinkerers: pypi.org/proje…

@frankel@mastodon.top
2025-09-27 08:22:06

#Python on the Edge: Fast, sandboxed, and powered by #WebAssembly
wasmer.io/posts/python-on-the-

@cark@social.tchncs.de
2025-10-21 17:25:15

#TIL
#Python :python: #Flask web development detail:
If you change data in a nested structure in your `session` object you might need to set
`session.modified = True`.
(I took me q…

@mgorny@pol.social
2025-10-24 02:25:22

No kto by pomyślał, że tworzenie języka programowania, w którym można szybko tworzyć, wdrażać i porzucać mnóstwo paczek mogłoby doprowadzić do czegoś takiego…
"Forking confusing: Vulnerable Rust crate exposes #uv #Python packager"

@datascience@genomic.social
2025-09-26 10:00:01

Video tutorials for modern ideas and open source tools. #python

@tinoeberl@mastodon.online
2025-11-04 11:41:41

📊 Meine Top4-Beiträge der letzten Woche mit den meisten Boosts sind:
1. Die #Python Software Foundation hat 1,5 Mio USD #Förderung von US-Regierung abgelehnt.

@mgorny@social.treehouse.systems
2025-10-16 18:16:45

I've filed a report about a minor problem with a #Python package, namely that the source distribution contained some trailing junk that breaks GNU #tar. On one hand, I'm happy that upstream took the issue seriously. On the other hand, I'm terrified of how much #AI slop was involved in the response.
I mean, my short bug report yielded a few walls of text of #LLM analysis of what the cause of the problem might be, of suggested solutions… and praise of the author's fix. These are interspersed with short comments from the author, all pasted under their own personal account. And the linked pull request is also huge, with "verification code" that's quite sloppy (bits that don't do anything, conditions that will never be true… but at least it seems to do what it was supposed to do).
Honestly, I don't know what to do. Not that I ever planned using this package, but at this point I will definitely stay away from it. It's in #Gentoo, and I'll have to continue maintaining it for the sake of reverse dependencies, but I feel like it's unfair to expose our users to packages that have clearly proven to accept AI slop without reviewing it properly. Or rather, AI slop that's being reviewed… by AI. How can anyone think this a good idea?!
There were multiple times in my life when I've considered retiring from Gentoo, for variety of reasons. There were also multiple times when I wanted to get away from computers altogether. Unfortunately, we're living in a truly fucked up world, and there is no escape. The best you can do is put an ever increasing effort to keep fixing all that crap that will just keep piling on faster and faster.
#FreeSoftware #OpenSource

@hynek@mastodon.social
2025-10-21 04:14:59

LWN: Explicit lazy imports for #Python
I'm VERY excited by this PEP.
lwn.net/SubscriberLink/1041120

@almad@fosstodon.org
2025-08-29 00:01:46

The #Python documentary is really heartwarming for me. I got more distant from the community since ~2011, but both the language and the community still have a special place in my heart, and it's awesome to see how it grows.

@michabbb@social.vivaldi.net
2025-10-05 17:10:51

🛠️ Fully #opensource #Python framework you can self-host or deploy to LiveKit Cloud with one CLI command. 🐙 github.com/livekit/agents

@rasterweb@mastodon.social
2025-10-23 03:18:39

Years ago I had this Processing app that I used to create time stamped images from a webcam. It no longer works. (It’s been years since I used it.)
I was able to rewrite what I need in Python fairly easily, so that’s pretty awesome.
I used to really love Processing but I guess I love Python now.
#processing

@EgorKotov@datasci.social
2025-08-23 10:09:58

Many of you already heard about this new algo that's faster than Dijkstra ( #python

@niqdanger@social.linux.pizza
2025-09-19 20:39:33

Whats the replacement for crypt in python? I want to crypt a known string just like /etc/shadow/ so I can verify my students set the username/pw correctly as requested in a lab. I was using this code (image) but looks like crypt.crypt isn't there in Python3.13. Looks like my code doesn't work like it did last semester. Oops. #python3

Snippit of python code showing reading a crypted PW from shadow, then encrpyting a string with the same salt to compare if password was set correctly in a student exam.
@mgorny@pol.social
2025-08-18 13:43:52

> Czysty #Python.
Zagląda do środka.
> Wpisany do pliku Pythona kod maszynowy, uruchamiany przez ctypes.
github.com/flababah/cpuid.py/b

@unixorn@hachyderm.io
2025-10-27 18:52:23

Bravo #Python Software Foundation!
pyfound.blogspot.com/2025/10/N

@rasterweb@mastodon.social
2025-09-25 20:07:26

I think my code would work perfectly except that os.utime does not actually work...
#python #code #programming

@davidshq@hachyderm.io
2025-10-31 14:03:25

Proud of the Python Software Foundation for withdrawing its proposal for grant funding from the Nation Sciences Foundation due to onerous anti-DEI requirements:
#psf #python #nsf #dei

@mgorny@social.treehouse.systems
2025-11-01 06:07:39

0 days since random #Python package switched #PEP517 backend and published an incomplete source distribution.

@veit@mastodon.social
2025-08-21 16:59:56

Hi Pythonistas! Previously, I was able to use the Trove classifier
Private :: Do Not Upload
to prevent packages from being accidentally uploaded to PyPI. Is there a similar option with the PEP 639 licence expression?
@… #Python

@michabbb@social.vivaldi.net
2025-11-01 19:50:15

💻 New Tech Unveiled Meet TSUs (Thermodynamic Sampling Units)! The X0 prototype chip proves these primitives work in silicon at room temp. Plus, XTR0 desktop kit for early researchers—available this fall.
📚 #OpenSource Kickstart Dive in with Thermal, the #Python library to simulate TSUs on GPUs. Build thermoAI algorithms now & collaborate!

@hynek@mastodon.social
2025-08-23 10:13:59

SO many #Python frens that I see wayyy too rarely in less than 2mins 💔😭
youtube.com/watch?v=k6G_QIu7Im4

@frankel@mastodon.top
2025-09-17 08:16:06

PythonBPF - Writing #eBPF Programs in Pure #Python
xeon.me/gnome/pythonbpf/

@mgorny@social.treehouse.systems
2025-09-10 11:45:07

Here are some key takeaways from implementing #PyPI attestations in #Gentoo:
• With OpenPGP, you need to validate the authenticity of a key. With attestations, you need to validate the authenticity of the identity (i.e. know the right GitHub repository). No problem really solved here.
• They verify that the artifact was created by the Continuous Deployment workflow of a given repository. A compromised workflow can produce valid attestations.
• They don't provide sufficient protection against PyPI being compromised. You can't e.g. detect whether new releases weren't hidden.
On the plus side, TOFU is easier here: we don't have to maintain hundreds of key packages, just short URLs on top of ebuilds.
Security-wise, I think PEP 740 itself summarizes it well in the "rationale and motivation" section. To paraphrase, maintainers wanted to create some signatures, and downstreams wanted to verify some signatures, so we gave them some signatures.
#security #Python

@usul@piaille.fr
2025-08-30 13:13:11

and then it all breaks down #coding #programming #javascript #python

@mgorny@pol.social
2025-10-17 18:27:40

O, fajno. Wygląda na to, że do wsparcia Pythona 3.14 w #Django w #Gentoo brakowało tylko jednej łatki. I działa!
#Python

@mgorny@social.treehouse.systems
2025-09-28 05:55:18

1. "It's just two pipelines with awk, and a comm, I'll write it in POSIX #shell."
2. "Hmm, need some error handling too."
3. "Oh wait, there is no PIPESTATUS in POSIX shell? How are you supposed to check the pipeline for errors?!"
4. "Eff it, I'll just use #Python."
Just a regular day in #Gentoo.

@hynek@mastodon.social
2025-10-17 06:13:16

hot take: a big reason for the collective anxiety around free-threading is the result of decades of copium where we assured each other that it's good, actually, that #Python has a bad threading story, because threads are dAnGeRoUs and our feeble minds need protection

@mgorny@pol.social
2025-09-28 08:25:37

1. "To tylko dwa potoki z awkiem, i jeden mały comm, powłoka POSIX doskonale się nada."
2. "Hmm, teraz muszę dołożyć obsługę błędów."
3. "Co, nie ma PIPESTATUS? To jak sprawdzić stan potoku?!"
4. "Walić to, użyję Pythona."
Zwykły dzień w #Gentoo.
#Python

@veit@mastodon.social
2025-08-22 17:49:01

The latest uv release (0.8.13) introduced the experimental uv format. It calls Ruff’s formatter to automatically style your code: github.com/astral-sh/uv/pull/1. And you can use [tool.ruff] for both entry points.

@mgorny@social.treehouse.systems
2025-08-18 13:42:55

> Pure #Python.
Looks inside.
> Inline machine code ran via ctypes.
github.com/flababah/cpuid.py/b

@mgorny@social.treehouse.systems
2025-10-17 18:27:11

Oh nice, I see that #Django 5.2.7 was missing only one patch for #Python 3.14 support in #Gentoo. Now in!

@mgorny@social.treehouse.systems
2025-10-22 06:52:00

Remember the package that recently had some trailing junk in the .tar.gz that broke GNU tar, and replied to my bug report with a comprehensive #LLM analysis and a slightly sloppy release checking workflow?
They've made a new release and this time the source distribution is completely broken gzip stream.
Honestly, bumping #Python packages for #Gentoo all these years, I don't recall ever seeing a problem with gzip streams. And then, #autobahn starts using #ClaudeCode heavily, and two bad releases in a row. I can't help but consider the project compromised at this point.
#NoAI #AI

@mgorny@social.treehouse.systems
2025-09-07 01:54:17

WTF?!
Not only plain insulting, but looks like complete #AI #slop. I guess this is the direction where #GitHub is heading.
#Gentoo #Python

@mgorny@social.treehouse.systems
2025-10-24 02:24:26

Who would have thought that creating a programming language for rapidly developing, deploying and abandoning lots of packages would have lead to this…
"Forking confusing: Vulnerable Rust crate exposes #uv #Python packager"
#RustLang #security

@mgorny@social.treehouse.systems
2025-08-23 05:02:41

It's time to shame #PDM, the "#Python package and dependency manager", for embracing unethical coding. Also, clearly wasting large amounts energy to make a 4-line change, and get it wrong twice while at it.
(Yes, the "no significant changes" is another fix to the same #LLM coding mistake.)
#AI

@mgorny@social.treehouse.systems
2025-08-24 19:08:49

I've drafted support for verification of #PyPI provenance for #Gentoo.
You know, the new fancy thing that protects against supply chain attacks on PyPI, and verifies that you're using genuine #GitHub artifacts. Because, you know, GitHub repositories and deployment pipelines are an unlikely attack vector. And you definitely don't need to worry about #Microsoft owning the keys, the repositories and the pipelines at all.
#security #Python #SigStore

@mgorny@social.treehouse.systems
2025-10-25 19:41:41

🤚 Free Saturday
👉 Saturday spent working on Free Software
Highlights from #Gentoo:
#Gemato is now compatible with #FreePG and mostly compatible with #SequoiaPGP chameleon.
• Prepared patches to support FreePG and SequoiaPGP chameleon as "gpg" symlink providers.
#FlexiBLAS is now enabled by default on ~arch.
• Finally finished working on #PkgCheck check for missing #PyPI provenance checks.
• gpy-list-pkg-impls now includes "does this package have tests?" state, can optionally include PythonCompatUpdate results from PkgCheck and output mIRC colors. In other words, our IRC bot will now tell us when dependencies let us port new packages to #Python 3.14, and whether these packages have tests.