Tootfinder

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

@michabbb@social.vivaldi.net
2026-04-05 06:46:25

🛠️ Code generation with diff preview, cURL builder from captured requests, one-click request replay, VS Code-style command palette (Ctrl K), built-in Swagger UI & dark/light theme with PWA offline support
🌐 Language-agnostic API (#OpenAPI 3.1) - send debug data from #Python,

@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

@stf@chaos.social
2026-05-03 13:50:18

wtf does everytime a new v of #python is rolled out in linux distros, all virtual envs break, and i do have to rebuild them manually. we're now 13 minor versions since py v2.7 and everything became worse since then. i have a stable app, and if python would not fuck up this i would not have to touch it in a decade, but because of this, i feel like i'm in the java ecosystem where work is gener…

@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-04-04 16:21:45

1. Do random changes to cython-test-exception-raiser, and commit them as "initial code".
2. Move the extension module from the package directory into top-level "raiser.*.so", for no apparent reason.
3. Switch to CalVer, so that #Twisted newer upgrades to the new releases (it pins to <2).
4. I file a bug, because I'd like to finally remove the old version from #Gentoo.
#Python

@lpryszcz@genomic.social
2026-03-15 12:30:11

#Cython promises to make "writing #C extensions for Python as easy as #Python itself." The reality is: learn C's mental model, express it in Python syntax, and use a separate diagnostic tool to verif…

@stf@chaos.social
2026-05-03 13:51:08

why can't a minor version change not be goddamn backward compatible ffs.
#python

@tinoeberl@mastodon.online
2026-03-21 06:07:01

#Steady #Klimacrew
#BahnMonitor-Projekt: 7. Zufall ist nicht gleich Zufall. 🤭
Nach der Verspätungsmeldung kommt ein Wissenshäppchen. Der

@frankel@mastodon.top
2026-03-18 09:18:49

#Python #Type Checker Comparison: Typing #Spec Conformance

@qbi@freie-re.de
2026-03-15 09:08:43

Thonny, Python IDE for beginners
#IDEsofMarch #python

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

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

@rasterweb@mastodon.social
2026-04-17 20:57:35

I do not get how Python's math.modf works...
Why do I get all the zeros or nines?
4.4 | 4.0 | 0.40000000000000036
4.5 | 4.0 | 0.5
4.6 | 4.0 | 0.5999999999999996
I can fix it with... more math, but maybe I am doing something wrong?
#python #math

@ellie@ellieayla.net
2026-03-13 19:44:01

Does VSCode (eg in pylance) have a feature to display a clickable link to the language standard library documentation (eg #python #vscode #askfedi

@adlerweb@social.adlerweb.info
2026-04-23 09:04:15

Falls ihr das #Python "dist"-Modul oder #Ansible nutzt und bei #Gentoo plötzlich für distribution/ansible_distribution/… falsche Werte erhaltet (z.B. ClearLinux):
Gentoo quo…

@stsquad@mastodon.org.uk
2026-03-24 15:01:52

Looks like there is another supply chain attack on open source, this time the #python based #litellm package. I had a look at the #github page and I can see over a thousand open pull requests and a core t…

@tinoeberl@mastodon.online
2026-03-19 06:07:02

#Steady #Klimacrew
#BahnMonitor-Projekt: 5. Automatisierte Skripte brauchen Kontrolle – besonders bei API-Aufrufen.
Jetzt bekommt das

@mgorny@social.treehouse.systems
2026-04-30 04:07:02

I think we should EOL #Python versions more often. This triggers not-very-active projects to finally make a release, including another batch of releases today (apparently 6 months mark). Unlike, I don't know, bug fixes.
#Gentoo

@hynek@mastodon.social
2026-04-15 04:42:31

I’m shocked I haven’t sold out PyTexas yet! What’s up Austin, I even got a fresh haircut! #Python
pretix.eu/pytexas/2026/

@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…

@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

@rasterweb@mastodon.social
2026-03-10 20:14:18

Here's two examples of running command line stuff on iOS via Apple Shortcuts and a-Shell.
One shows the uptime of my phone, the other runs a Python script and shows the output.
#iOS #apple #python

Screen shot of an Apple Shortcut
Screen shot of an Apple Shortcut
@mgorny@social.treehouse.systems
2026-05-05 05:25:48

#Python #cryptography library (yes, the one that criticizes everything and everyone) is now vibecoded. Our future is truly bright!
Noticed because apparently "Claude" wrote a test that OOM-ed my system. But hey, #RustLang protects against memory errors, so it's fine to vibecode your security critical components.
#security #AI #LLM #NoAI #NoLLM

@michabbb@social.vivaldi.net
2026-03-31 18:37:22

#ZenOfAICoding: 16 theses on the future of #softwaredevelopment in the #AI era — a homage to the Zen of

@hynek@mastodon.social
2026-04-13 17:49:06

Here’s stamina 26.1.0, my opinionated #Python retry package, that now supports more than 1024 retries for the cases when you need A LOT of stamina: github.com/hynek/stamina/relea

@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

@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-

@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

@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

@hynek@mastodon.social
2026-04-12 09:33:20

Maintainer friends of wheel-heavy #Python packages: do we already have some practical, standard way to automatically upload all the cibuildwheel output across all architectures? My current workflow is a) a pain in the ass and b) requires me to have one last PyPI upload token.

@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

@mgorny@social.treehouse.systems
2026-03-24 14:29:27

#Python is just doing great. We're not having impossible constraints, as some projects need old #setuptools for pkg_resources, and other projects are starting to require newer setuptools for some fancy new features. And ofc after promising to release pkg_resources standalone over a month ago, setuptools upstream didn't deliver.
#Gentoo

@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

@tomkalei@machteburch.social
2026-04-20 11:00:24

Here is a quine in #lean
def main : IO Unit := do
let s := "\n IO.print (\"def main : IO Unit := do\\n let s := \" s.quote s)\n"
IO.print ("def main : IO Unit := do\n let s := " s.quote s)
S is code to print the preamble P, then S quoted and then S.
If you want to test it, make sure there is a newline at the end of the file because S ends in "\n".
#Python:
s = '\nprint("s = " repr(s) s)'
print("s = " repr(s) s)
2/2

@mgorny@social.treehouse.systems
2026-03-11 13:58:34

Fun case of circular logic in #Python #standards:
discuss.python.org/t/spaces-no
1. Use "globs" in the specification.
2. Decide that "glob" may be ambiguous, so add severe restrictions on what's supported.
3. Because of the severe restrictions, people may have reinvented the wheel instead of using system `glob` module.
4. Since people may have used their custom implementations, just relaxing the spec is a problem.

@castarco@hachyderm.io
2026-03-20 08:56:24

It's not like I'm entirely surprised by this #OpenAI. That's the kind of software that we should build as a community.
#Astral #Python #Capitalism #floss

@michabbb@social.vivaldi.net
2026-04-11 20:43:48

♿ First #opensource end-to-end PDF accessibility tool: layout analysis − auto-tagging − Tagged PDF (Apache 2.0, Q2 2026). Built with PDF Association & veraPDF devs
🔗 #LangChain integration, #Python

@mgorny@social.treehouse.systems
2026-04-20 01:58:52

How to get a package removed from #Gentoo?
1. Add a new #NIH dependency.
2. The dependency turns out to use coherent.build. Nightmare! Oh, wait, apparently coherent.build generates source distributions that use flit.core (understandable; coherent.build is unusable).
3. The dependency depends on chardet (the project famous for GPL copywashing). Okay, technically it works with the older version, and the dependency is optional with poor person's fallback, so I guess it would be fine.
4. But hey, this package is not used by anything, and the last package using it in Gentoo was removed in 2020, after not being touched for 4 years already. Also, that package is not maintained upstream since 2017, so I guess there's negligible risk of it ever coming back.
#Python

@mgorny@social.treehouse.systems
2026-04-15 05:00:43

The state of #security these days: #Python #virtualenv package now includes SHA256 sums of their bundled wheels, declaring that it protects against "supply-chain compromise". Because obviously there are so many attack vectors that permit you to alter a .whl file but not the .py file in the same directory.
No, I'm not saying verifying checksum makes no sense, because indeed it can save some pain if fs is damaged somehow. However, calling this a "security" feature is a misnomer at best, and openly giving people false sense of security at worst.

@mgorny@social.treehouse.systems
2026-04-03 14:18:26

#PythonPoetry is yet another project that disrespectfully treats human bug reporters with #slop:
#NoAI #NoLLM

@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
2026-03-11 07:57:54

Always grateful for the new levels of stability and reliability that #RustLang rewrites of #Python stuff bring.
> a = Tibs.from_i(-1, 128)
^^^^^^^^^^^^^^^^^^^^
E pyo3_runtime.PanicException: attempt to negate with overflow
github.com/scott-griffiths/tib

@mgorny@social.treehouse.systems
2026-03-11 07:26:39

So, remember how all the cool kids dumped #Sphinx and went for the shiny #MkDocs thing? And then used the shiny Material for MkDocs theme?
Well, apparently MkDocs 1.x is dead, and MkDocs 2.0 is coming with no support for plugins, incompatible theming system, closed contribution model and unclear licensing.
So which hype train are the cool kids jumping to these days?
#Python

@mgorny@social.treehouse.systems
2026-03-31 11:45:30

#orjson is another #Python package you should avoid:
> There is no open issue tracker or pull requests due to signal-to-noise ratio.
#RustLang.

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

Everything #uv #ruff #ty #python

@mgorny@social.treehouse.systems
2026-03-30 05:47:11

I'm looking at Repology, and I think most of the distributions and other downstreams have rightfully boycotted #Python #chardet #copywashing. Of course, there's the possibility that some of them are simply out-of-date, though.
So far chardet-7 is distributed by #Chromebrew, #CondaForge (not on Repology), #Homebrew, #KaOS, #OpenIndiana, #openmamba, #Ravenports, #Spack and #T2 SDE. Shame on you!
repology.org/project/chardet/v
repology.org/project/python:

@mgorny@social.treehouse.systems
2026-03-23 04:40:50

There's a new piece explaining "The Slow Collapse of #MkDocs": "How personality clashes, an absent founder, and a controversial redesign fractured one of Python's most popular projects."
#httpx?
Well, turns out no, not at all. It looks like encode has already crumbled and became immensely toxic.
httpx is not allowing bug reports anymore, apparently because of "absurdly skewed gender representation", whatever that means.
#OpenSource.
#FreeSoftware #Python

@mgorny@social.treehouse.systems
2026-03-27 05:04:07

< mgorny> that's gunicorn
< mgorny> looks like vibecoding hard
<@sam_> sigh
<@sam_> #Python #NoAI #NoLLM #AI #LLM #OpenSource

@mgorny@social.treehouse.systems
2026-03-19 12:23:26

Proper #security nightmare time.
#LMDB is a database that's designed to operate on trusted input. Upstream has historically rejected all bug reports regarding problems with malformed input.
Py-LMDB project provides #Python bindings to LMDB that are normally built against bundled LMDB. Someone recently started mass-filing "untrusted input" vulnerabilities against py-lmdb, and py-lmdb started #slop - coding fixes to their bundled LMDB. Of course, nobody even bothered reporting most of these bugs upstream, and the one that I've seen reported was rejected as "don't do that".
Py-LMDB supports building against system LMDB, and #Gentoo was doing that so far. However, now we are facing a problem: system LMDB operates under the assumption that it is working on trusted input, while py-lmdb (and its bundled LMDB) operates under the assumption that it may be working with untrusted input. The guarantees no longer align.
If we continue to use system LMDB (and skip all the added slop tests that literally cause Python to crash), then Gentoo's py-lmdb package will now have different input expectations than upstream py-lmdb. And of course we can't just remove that crap because someone added exactly one package (TorchVision, i.e. part of the plagiarism machine suite) depending on it.
bugs.gentoo.org/971352

@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
2026-03-17 06:43:42

A short history of #SQLGlot:
2023-07: SQLGlot is added to #Gentoo.
2023-12: Rust extension is added.
2026-03: Rust extension is replaced by mypyc compilation.
2026-03: SQLGlot now requires its own mypy fork… 🤦
Seriously, what are these people thinking?!
EDIT: and of course it's LLM #slop now.
#Python

@mgorny@social.treehouse.systems
2026-04-14 09:22:16

PSA: The annual #Gentoo #Python switch planned for 2026-06-01. CPython 3.14 becomes the default, 3.11 and #PyPy 3.11 go out. The latter fills me with sadness but keeping it is unrealistic now that projects are aggressively pushing for 3.12 .
Of course, we'll continue shipping the interpreters, so you can use venvs if you like. However, that's going to become harder to use since many projects either don't ship PyPy wheels or don't work on PyPy at all without patching.
We will revisit PyPy support if a version compatible with Python 3.12 appears in reasonable time.
public-inbox.gentoo.org/gentoo
public-inbox.gentoo.org/gentoo

@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
2026-03-09 02:48:20

When you drop the dependency on #chardet over the #AI #slop release… and replace it with your own slop.
#Python #LLM #NoAI #NoLLM