News for hackers. Stuff that matters.
Re:Python 3.12.0 is to remove long-deprecated items by nicoco on Wednesday November 16, 2022 @11:33AM (#33625884)
For a different perspective, I started using python about 5 years ago, and I never experienced a single breakage due to a new python release. Instead, I'm always excited to read new version releases notes and it's the only thing that may make me move away from debian stable someday. But waiting a few months, using containers, or compiling a newer python is usually fine when I can't wait.

Removing deprecated stuff is… the point of deprecating stuff?

Re:Python 3.12.0 is to remove long-deprecated items by leadingthenet on Wednesday November 16, 2022 @02:52PM (#33629508)
You should also look into pyenv if you'd like to install newer versions sooner, outside a container.
Re:Python 3.12.0 is to remove long-deprecated items by rch on Wednesday November 16, 2022 @04:14PM (#33630724)
I moved to nixpkgs from pyenv about a year ago, with positive results. I think it's worth the initial effort.
Re:Python 3.12.0 is to remove long-deprecated items by Alex3917 on Wednesday November 16, 2022 @05:11PM (#33631546)
Same here. I don't think I've been affected by a single deprecation since upgrading to Python3 in 2015, and even that upgrade wasn't that difficult -- mainly I was just forced to fix a few things I had been doing incorrectly, which imho is a good thing.
Re:Python 3.12.0 is to remove long-deprecated items by cogman10 on Wednesday November 16, 2022 @05:16PM (#33631633)
> Removing deprecated stuff is… the point of deprecating stuff?

The point of deprecating stuff is to redirect to newer/better/saner APIs, not necessarily removing the thing.

This is where I like Java's approach. Stuff is deprecated in the JDK but fairly rarely is it removed. When it is, it's because the feature is either unused or so detrimental to the ecosystem as to warrant removal (see: finalizers).

Re:Python 3.12.0 is to remove long-deprecated items by actuallyalys on Wednesday November 16, 2022 @10:29PM (#33634585)
My experience with Python is probably closer to nicoco's than wakeupcall's (usually pretty painless), but I tend to prefer the Java approach. Waiting three releases for removal gives you four years of support and seven years of security fixes. That isn't unreasonable but feels a little too fast in a language as old as Python (especially with people still burned from Python 3).
Re:Python 3.12.0 is to remove long-deprecated items by mrelectric on Wednesday November 16, 2022 @07:48PM (#33633385)
conda create -n yourenv python=3. 12 ;)
Re:Python 3.12.0 is to remove long-deprecated items by qwertox on Thursday November 17, 2022 @12:55AM (#33635485)
5 years is not enough to be experiencing this. The pain is very real and consumes a tremendous amount of effort. I've started writing tools just to create inventories of which packages with which versions I'm using where in order to try to automate the upgrading of virtual environments as much as possible. It's a horrible experience.

The biggest boulder I currently see rolling towards me is the MongoDB driver since I need to upgrade the databases and the drivers can't cope with the latest version.

Re:Python 3.12.0 is to remove long-deprecated items by jd_mongodb on Friday November 18, 2022 @12:14PM (#33657936)
We have recognised this problem and to that end we have produced a Stable API standard https://www.mongodb.com/docs/manual/reference/stable-api/

I realise this doesn't help you with historical API changes.

If you look for help in the MongoDB community and tag me ([email protected]) I will make sure you get help migrating your app.

https://www.mongodb.com/community/forums/