r/ProgrammerHumor • • Mar 03 '25 • Helpful 1

Meme ifYouDidntKnow

Post image
56.7k Upvotes

432 comments sorted by

View all comments

Show parent comments

18

u/nickwcy Mar 03 '25

I always annoyed by Python releases, minor version change should not be breaking

8

u/JanEric1 Mar 03 '25

They arent breaking to the the language itself.

But they do break the C api and standard library.

3

u/mira-hildegard Mar 03 '25

Backwards compatibility (3.13 will run 3.6 code with minor issues at worst) != forwards compatibility (AAAA 2to3 AAAAAAH)

You're right that it's not strictly semantic at all: the stdlib will deprecate and then remove things over a handful of versions. They're usually relatively minor – thankfully – but they do add up, so going from 3.6 to 3.13 will almost certainly get you at least one.

A better option, had Python a chance for a do-over, would have been for it to hold off on deprecations until some 4.0 (~3.6), 5.0 (~3.10) etc — no 2to3-era breaking syntax, just a good anchor point for a "refresh", as it were, and any major new syntax sugar.

Then at least the deprecations aren't so scattered. And given how often libraries seem to stop supporting older "generations" of 3.x versions, it's not like it wouldn't have made total sense either.

But I imagine 2to3 still sticks in everyone's heads, so rolling deprecation it is for now.