Live data from Hacker News

Python 3.12.0 is to remove long-deprecated items

discuss.python.org

41–50 of 257 posts

Re: Python 3.12.0 is to remove long-deprecated items

#42
post #31

Earlier quoted context omitted.

You should sign up to maintain those ancient modules

Why do they need to be maintained? Just leave them as is.

Because supposedly people will report bugs for them and someone will need to fix them.

Re: Python 3.12.0 is to remove long-deprecated items

#43
post #31

Earlier quoted context omitted.

Why do they need to be maintained? Just leave them as is.

Because supposedly people will report bugs for them and someone will need to fix them.

“Sorry, we don't fix bugs in deprecated code. Closed.”

Re: Python 3.12.0 is to remove long-deprecated items

#44
post #27

This is a reminder that the excellent pyenv [0] project can help you manage all your Python versions. - Set global and per-project python versions - Not written in Python. - Shims your PATH - Linux, Mac, Windows [0]: https://github.com/pyenv/pyenv

How does pyenv compare with conda, mamba, pip and poetry? I typically use conda but ever since they broke with python 3.10 I have been considering moving to other environment managers.

Re: Python 3.12.0 is to remove long-deprecated items

#45
post #43

Earlier quoted context omitted.

Because supposedly people will report bugs for them and someone will need to fix them.

“Sorry, we don't fix bugs in deprecated code. Closed.”

“Deprecated” usually implies intent to remove. Regardless, even dealing with such rejections is a support burden. And security vulnerabilities will tend to be fixed, even in deprecated code.

Re: Python 3.12.0 is to remove long-deprecated items

#46
post #27

This is a reminder that the excellent pyenv [0] project can help you manage all your Python versions. - Set global and per-project python versions - Not written in Python. - Shims your PATH - Linux, Mac, Windows [0]: https://github.com/pyenv/pyenv

How does pyenv compare with conda, mamba, pip and poetry? I typically use conda but ever since they broke with python 3.10 I have been considering moving to other environment managers.

Try Pyenv for the Python version and poetry for the venv and dependency management.

Once you're used to the workflow it's pretty smooth. (We switched from conda 2 years ago)

Re: Python 3.12.0 is to remove long-deprecated items

#48
post #8
post #4

https://docs.python.org/dev/whatsnew/3.12.html For a lot more info on removals

> Removed many old deprecated unittest features ... > You can use https://github.com/isidentical/teyit to automatically modernise your unit tests. I tried out teyit when it was a "Show HN" 10 months ago (at https://news.ycombinator.com/item?id=29948813 ). It not only pointed out places where I was using a deprecated alias, but also fixed a few places where I was using the API poorly (using "assertTrue(a binop b)" ins…

I can't comment on the quality of the tool, I just don't like this attitude of "just use this tool we don't support, hosted on some platform we don't control, which might disappear tomorrow". Back in the day, this tool would have been shipped (and supported) with stdlib, or at least be frozen somewhere "official".

Re: Python 3.12.0 is to remove long-deprecated items

#49
Sad to see distutils going away. I have very old projects which use distutils for distribution. Wrote them in Python 2 days and they were ported easily to Python 3. But distutils going away is going to break them.

I know setuptools is advanced and recommended but distutils worked fine for me and my users for so many years. It is going to be overhead for me to comb through all my projects and replace distutils with setuptools, test them and testing out packaging and distribution is quite a lot of work.

I am growing unhappy with Python due to these breakages. Is there some other programming language whose maintainers don't break the "user space" like Python has been doing time and again?

Re: Python 3.12.0 is to remove long-deprecated items

#50

Sad to see distutils going away. I have very old projects which use distutils for distribution. Wrote them in Python 2 days and they were ported easily to Python 3. But distutils going away is going to break them. I know setuptools is advanced and recommended but distutils worked fine for me and my users for so many years. It is going to be overhead for me to comb through all my projects and replace distutils with se…

Good news for you:

> For projects still using distutils and cannot be updated to something else, the setuptools project can be installed: it still provides distutils.

From: https://docs.python.org/dev/whatsnew/3.12.html#removed

Post reply on HN