npub1tj54dz997wrdyqgf8sc36z3upy3ld0ujmwqyx42dtqxcwc7l68fqlx5ry2 (npub1tj5…5ry2) I feel like JavaScript isn't in a much better shape either :) but yes, it happens quite often in Python. After many years jostling through bad/outdated libraries I've started to see two patterns:
1. Many of these projects (especially the older ones) are the result of aborted/messy migrations from Python 2 to 3. The migration process took like a whole a decade, but the tail was also very, very long. I've worked with libraries that still to this date have string/bytes operations that break on Python 3, despite Python 2 was deprecated in 2008 and officially sunset in 2015.
2. It happens more often in Python (and I'd also add JavaScript) because these have been for many years the favorite languages picked by hobbyists and individual FOSS-enthusiasts - unlike libraries developed, let's say, for Java, C# or Kotlin that are mostly developed either by companies or well-funded foundations. This means that, when the individual developer moves to something else, the project often dies as well if nobody picks up the calls for a new maintainer (and sadly that happens in the majority of the cases). Even if that project had become the de facto way of doing something in Python.