Tootfinder

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

@hynek@mastodon.social
2026-01-05 15:52:34

how did i not know about tox’s version range syntax!? (i.e., 3{9-14} == 3{9,10,11,12,13,14}) 😍
(added in tox 4.25.0 on 2025-03-27) #python

@cark@social.tchncs.de
2026-01-02 10:53:39

I just found a Starter Pack called Women in #Python: fedidevs.com/s/NjY3/
Ceated by Python Core Developer @…

@mgorny@social.treehouse.systems
2026-03-02 14:12:28

Oh, in other news, Wheel Variants (formerly PEP 817) is being split into smaller PEPs that will be easier to comprehend. The draft of the first split part, PEP 825, titled "Wheel Variants: Package Format" has been merged. We'd appreciate your feedback!
#Python #packaging

@frankel@mastodon.top
2025-12-30 09:00:09

4 mois de #Python de manière intensive: mon retour sur le langage
mcorbin.fr/posts/2025-12-26-py

@elduvelle@neuromatch.social
2026-02-15 20:53:36

Slightly technical coding question, #Matlab to #Python:
What's the simplest way to read a Matlab table in Python?
Or, if that's not possible, what should I convert my Matlab table to so I can read it in python? 🙏
It's quite a big table with "nested" data i.e. some of th…

@mgorny@social.treehouse.systems
2026-01-02 04:23:29

Yeah, why not neglect all the good recommendations in the #Python ecosystem, and instead fork your own C extension package, force people to build it with #ZigLang (it's still C), add unconditional dependency on that, and on top of that, refuse to publish wheels, "allowing for optimised compilation according to your machine's specific architecture and capabilities, instead of some (low performance) common denominator."
Fortunately, looks like #Gentoo can just ignore all the fancy crap and compile it with GCC.
pypi.org/project/ruamel.yaml.c
[UPDATE: didn't last long: sourceforge.net/p/ruamel-yaml/]

@joe@toot.works
2026-01-13 16:57:16

Only $1.5mil?
#Python #Anthropic

@rmdes@mstdn.social
2025-12-29 19:22:52

So … I have been busy contributing to this
tldr: real-time #telegram archive of the Russian War against Ukraine.
It’s 100% built with Claude Code in a bit more than 2 months
it’s near 200.000 lines of #python code, without counting with documentation of course.
check it out !

@cybertailor@craba.cab
2026-02-24 17:16:38

Вопрос к гуру #Python и #SQLite: что вы передаете в функции, Cursor или Connection? Какие плюсы и минусы, или нет никакой разницы?
Если нужно коммитить, то насколько странно делать это через cur.connection.commit()?

@frankel@mastodon.top
2025-12-21 09:30:04

Use #Python for #Scripting!
hypirion.com/musings/use-pytho

@ellie@ellieayla.net
2026-02-25 17:25:29

The document-wide in-scrollbar thumbnail / minimap has been around for a while. Most people are familiar with it from RockScroll (2008) or Sublime Text (2012) or VSCode (2015).
#coverage #python

@tinoeberl@mastodon.online
2025-12-11 06:07:02

#Steady
Wie lassen sich #Wechselrichterdaten vom APsystems EZ1 lokal speichern?
Für statistische Auswertungen müssen alle Daten kontinuierlich gespeichert werden. Wie das mithilfe von #Python

@scottmiller42@mstdn.social
2026-01-23 17:45:15

In #Python, you could write sensible and transparent code, like this:
if (curNode):
curNode = curNode.next
But if you prefer something that is functionally identical, but harder to read, try this:
curNode and (curNode := curNode.next)
Follow me for more great tips on how to make life hell for the next person working with your code (which could be you).

@datascience@genomic.social
2026-01-19 11:00:01

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

@guerda@ruhr.social
2026-02-17 17:57:19

If you create visualizations with #Python, what would be your 2026 choice?
I recently learnt that #seaborn which I liked hasn't had a release over a year (which is not necessarily bad, but their move to an object interface was not nearly completed and now it's stuck).
Let me know your fav…

@frankel@mastodon.top
2026-01-03 17:24:22

When NOT to use #Pydantic
#python

@peter_mcmahan@mas.to
2025-12-10 16:58:59

I rewrote a data analysis pipeline, moving it from #python to #julialang . I am now in love with the threading support in Julia.
The task is very parallelizable but each thread needs random read access to a tens-of-GB dataset. In Python (with multiprocessing, shared stores, etc) data bookkeeping was a nightmar…

A screenshot of a part of one row from `top` showing a julia process using 4388% CPU and 51% memory, with a running time of 3 weeks.
@michabbb@social.vivaldi.net
2026-01-21 00:19:52

📋 #SkillSeekers - #Python tool automatically transforms documentation, #GitHub repos & PDFs into production-ready AI skills

@mgorny@social.treehouse.systems
2025-12-29 17:48:33

When you notice twine uploading a 400M sdist for a tiny #Python package, you know something went wrong.

@frankel@mastodon.top
2025-12-31 09:19:35

How #uv got so fast
#python

@ellie@ellieayla.net
2026-02-17 06:42:41

Finally put together type stubs for an old (last release 2017!) python library I've been depending on for years. And now wondering whether it would have been easier to just contribute types to the library directly. I thought it abandoned but then the maintainer responded up on an unrelated ticket.
(Though there's no CI infra actually working anymore. Makes testing contributions painful. Wonder whether building that first would be worthwhile & welcome...)
#python #packaging

@elduvelle@neuromatch.social
2025-12-12 13:37:50

Between #Matlab and #Python, which one would you recommend to learn, for a student who wants to learn programming (from scratch) to do data analysis? And why?
I am conflicted because I think Matlab is maybe slightly more straightforward to learn, but Python should be more useful in the long …

@mgorny@social.treehouse.systems
2025-12-23 06:48:38

Well, I suppose someone had to say it: I'm really disappointed that #PyPI / #PSF went as far as to use dark patterns in the donation banner.
#Python

@ellie@ellieayla.net
2026-02-22 17:00:25

Argument type is "list[tuple[dict[str, list[list[Unknown]]], list[str]] | tuple[dict[str, list[list[Unknown]]], list[Any]]]"
Utterly ridiculous statements made about parsed json that no-one should have to read in the morning.
#python #typing

@nobodyinperson@fosstodon.org
2026-02-16 14:57:12

I made a utility to bulk-upload calendar entries to a #CalDAV server from a JSON file:
pypi.org/project/caldav-event-

@hynek@mastodon.social
2026-01-09 05:43:08

Santa #Python came super early in 2026!
With build 1.4.0, it is now possible to easily dump effective package metadata!
So getting the version of a package in the current directory is now as easy as `pipx run build --metadata 2>/dev/null | jq -r .version`.
This is NOT like parsing pyproject.toml or whatever. It builds the package and looks at the result. So it works even with…

@mgorny@social.treehouse.systems
2026-02-25 15:16:07

Aaand we're seeing the first '#setuptools < 82' runtime dependencies in random packages because they are trying hard to workaround breakage due to pkg_resources removal.
#Python

@gla@mastodon.social
2026-01-22 10:16:03

MapToPoster is a beautiful utility to create minimalist posters of the (water)ways of a city.
If you have uv installed, it takes a moment to get going
#python

@mgorny@social.treehouse.systems
2026-03-02 13:10:48

And non-zero version epochs in #Python are now officially discouraged. Not that anyone used them.
#Gentoo

@mgorny@social.treehouse.systems
2026-02-22 15:44:22

> The next great […] library for #Python
Checks.
> Last commit: 4 years ago. Already broken.

@iam_jfnklstrm@social.linux.pizza
2026-02-20 09:47:20

This bundle from Humble bundle looks great for someone tinkering with #aurdino and #rpi and working with #python and #R

@ellie@ellieayla.net
2026-02-01 15:34:36

Ah yes, brew upgraded some ssl-related .so file and broke the python binaries linked against it. Again. So many venvs now lay in ruins.
There has got to be a better way.
(Why do pyenv-built pythons seem to habitually get built using the brew-provided libraries? There's no way for brew to know about that dependency.)
#brew #python #macdev #complaining #askfedi

@mgorny@social.treehouse.systems
2026-02-17 13:30:33

Did you know that #PEP425 ("Compatibility Tags for Built Distributions") said:
> Why isn’t there a . in the Python version number?
>
> CPython has lasted 20 years without a 3-digit major release. This should continue for some time. Other implementations may use _ as a delimiter, since both - and . delimit the surrounding filename.
This didn't age well.
#Python

@mgorny@social.treehouse.systems
2025-12-20 07:40:05

0 days since random #Python project used `pytest.raises()` for warnings.
#pytest

@ellie@ellieayla.net
2026-01-07 07:12:33

#python #pytest

@michabbb@social.vivaldi.net
2026-01-24 00:28:06

🧠 #Headroom - The Context Optimization Layer for #LLM Applications #opensource #Python

@mgorny@social.treehouse.systems
2026-03-04 04:17:35

Sometimes I wonder why do I even bother. I mean, people are perfectly happy to let statistical models designed as bullshit generators do their coding. Why do I even bother running their test suites and inspecting the failures as a human, if these tests may well be complete bullshit?
#FreeSoftware #OpenSource #Gentoo #Python #AI #LLM #NoAI #NoLLM #VibeCoding

@mgorny@social.treehouse.systems
2025-12-20 11:48:43

#Sphinx joined the list of packages dropping #Python 3.11 (and therefore #PyPy) support. Of course, we could just go through the effort of dropping it from respective packages in #Gentoo, given it's not technically that common… but honestly, at this point I have zero motivation to put the extra effort for this, just to learn that next month some core package starts requiring Python 3.12.
So, would anyone really mind if I removed Python 3.11 and PyPy support completely from Gentoo packages?

@mgorny@social.treehouse.systems
2026-01-27 09:49:48

0 days since random project started failing because someone decided to process a version number as a floating-point number, and didn't account for 2.10 🤦.
#Python #WTF

@ellie@ellieayla.net
2026-02-14 02:42:36

Everything #uv #ruff #ty #python

@mgorny@social.treehouse.systems
2025-12-12 05:17:12

I've almost missed my train today while filling bugs over another #slop release of #autobahn. This was the last straw. Well, the penultimate one, though I don't know why I'm even bothering.
#Python #NoAI

@ellie@ellieayla.net
2026-01-11 22:35:27

Binary partitioning with k-d trees is silly amazing. And with OSM data in radians and pretending the planet is a perfect sphere, scikit-learn's BallTree works wonderfully for quickly finding things nearby some reference point.
Like how far away the nearest bicycle_parking is for every building in a city.
#IMadeAThing #python #osm #overpassql

@mgorny@social.treehouse.systems
2026-02-17 07:48:41

Isn't it great when you spend half an hour dealing with the fallout of some cool kid deciding it would be great if a totally random pure #Python package required a build backend written in #RustLang?
#Gentoo #uv

@mgorny@social.treehouse.systems
2025-12-15 04:47:34

Totally normal #Python upstream attitude:
1. Ignore a reply on a bug report for 3 years.
2. Install a #StaleBot in the middle of the night.
3. 7 minutes after the bug is marked stale, claim that you "never heard back on this" and that "the issue was somewhere downstream", without even checking another linked issue.
#Matplotlib

@mgorny@social.treehouse.systems
2026-02-08 19:27:45

I hear that #Python folk are going to enjoy their Monday.
#setuptools removed pkg_resources.
Thanks to Eli Schwartz for the advance warning. We're going to mask it in #Gentoo.

@mgorny@social.treehouse.systems
2025-12-09 06:48:47

Uh, I'm seriously starting to wonder if I should start filing bugs to people "please move away from autobahn / txaio, it's turned into complete #AI #slop, with every release introducing major issues, and depending on it is plain dangerous."
#Python #NoAI #LLM

@mgorny@social.treehouse.systems
2026-01-15 15:58:32

> Concretely, we expect to add ML-KEM and ML-DSA APIs that are only available with #LibreSSL/#BoringSSL/AWS-LC, and not with #OpenSSL.
(from #Cryptography and #Qt simultaneously, right? (Qt rejected LibreSSL support.)
#Python

@mgorny@social.treehouse.systems
2026-01-07 04:46:42

Let's get this straight: it is entirely normal for a #OpenSource project to accumulate bug reports over time. They're not a thing to be ashamed of.
On the contrary, if you see a nontrivial project with a very small number of bug reports, it usually means one of the following:
a. you've hit a malicious fake,
b. the project is very young and it doesn't have many users (so it's likely buggy),
c. the project is actively shoving issues under the carpet.
None of that is a good sign. You don't want to use that (except for b., if you're ready to be the beta tester).
#FreeSoftware #Gentoo #GitHub #Python

@mgorny@social.treehouse.systems
2026-01-07 03:55:58

How to absolutely *not* do #OpenSource: require people to commit to work on other issues with your project in order to file bugs. So, sorry, #Typer, I won't be filing bugs. You figure out how you messed up your release yourself.
Also, please don't use #FastAPI. They are clearly bothered by the fact that people dare use their projects and waste their precious time with support requests.
#Python #FreeSoftware #Gentoo