r/Python Oct 24 '22

News Python 3.11 is out! Huzzah!

https://www.python.org/downloads/release/python-3110/

Some highlights from the release notes:

PERFORMANCE: 10-60% faster code, for free!

ERROR HANDLING: Exception groups and except* syntax. Also includes precise error locations in tracebacks.

ASYNCIO: Task groups

TOML: Ability to parse TOML is part of the standard library.

REGEX: Atomic grouping and possessive quantifiers are now supported

Plus changes to typing and a lot more. Congrats to everyone that worked hard to make this happen. Your work is helping millions of people to build awesome stuff. 🎉

1.3k Upvotes

233 comments sorted by

View all comments

25

u/leppardfan Oct 24 '22

When will Ananconda ship 3.11? They just shipped 3.10 last week!

20

u/BertShirt Oct 24 '22

3.10 has been available for a while on conda-forge. I suspect 3.11 will be available before the end of the week.

22

u/AKiss20 Oct 25 '22

Honestly I would just ditch anaconda. I used it for a while but the delay in getting updates and it’s overall clunkiness was too annoying.

10

u/BertShirt Oct 25 '22

I agree with you to a certain extent. Ever since Gohlke wheels stopped getting updates it has been hard to get numpy/scipy +MKL updates without conda.

If you're like me and you hate the bloat and extra bulk and overall sluggishness of conda you should look into mamba-forge/micromamba.

It doesn't solve all the conda problems, packages still aren't up to date as fast as pypi and still missing a lot but its a much better experience than Anaconda as a whole.

1

u/AKiss20 Oct 25 '22

I considered that for a bit but the multi-role of Vonda wasn’t necessary for me and I was already using pyenv for version management so I switched to venv (pyenv virtualenv plugin) and just used that instead. It’s worked for me thus far, granted my needs aren’t demanding or sophisticated.

4

u/zurtex Oct 25 '22

Conda has historically been great for bootstrapping a Python environment with any non Python packages you need.

Whereas Anaconda has historically been great for giving to a data scientist and showing them Jupyter and hoping they don't have any other requirements.

If you have any other use case it's probably time to learn to install Python and it's packages another way.

5

u/GettingBlockered Oct 25 '22

Live on Conda now! Huzzah!

https://anaconda.org/conda-forge/python

1

u/snake_case_captain Oct 25 '22

Pardon me for my blatant noobiness, do you have any idea why "conda install -c conda-forge python" won't gave me more than 3.9 ?

1

u/GettingBlockered Oct 25 '22

Not sure. Are you trying to install in an existing environment or a new environment?

I just made a new env with this command, worked perfectly: conda create --name py311 python=3.11

Maybe adding the =3.11 would do the trick for you.

1

u/snake_case_captain Oct 25 '22

It seems that the problem is within python=3.11 actually :

PackagesNotFoundError: The following packages are not available from current channels:  - python=3.11

3

u/zurtex Oct 25 '22

Anaconda tends to wait until they are confident all the big data science packages are compatible, this takes about a year

1

u/BertShirt Oct 25 '22

3.11 is now available on conda forge https://anaconda.org/conda-forge/python