CodeNewbie Community 🌱

Cover image for Python 3.11.0 is here to replace 3.10.x
Akash Pattnaik
Akash Pattnaik

Posted on

Python 3.11.0 is here to replace 3.10.x

Hey there everyone 👋!

To all the Python lovers out there, the wait is OVER!!

😮 History

Python is a high-level, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation. Python is dynamically-typed and garbage-collected. It supports multiple programming paradigms, including structured, object-oriented and functional programming.

It was released on 20 February 1991, around 3 decades ago🤯.

🦄 Python 3.11.0 update

Python released it's 3.11.0 update on 24 Oct, 2022. The update we've all been waiting for a long time. Head over to Python Site to download it.

Python 3.11.0 Preview

Take a look at me already using it.

🐲 New Features

A lot of new features came into Python with this new update.

🐉 General Changes

  • PEP 657 -- Include Fine-Grained Error Locations in Tracebacks
  • PEP 654 -- Exception Groups and except*
  • PEP 680 -- tomllib: Support for Parsing TOML in the Standard Library
  • gh-90908 -- Introduce task groups to asyncio
  • gh-34627 -- Atomic grouping ((?>...)) and possessive quantifiers (*+, ++, ?+, {m,n}+) are now supported in regular expressions.
  • Python 3.11 is up to 10-60% faster than Python 3.10. On average, they measured a 1.22x speedup on the standard benchmark suite.

🦖 Type Changes

  • Self Type
  • Variadic Generics
  • Arbitrary Literal String Type
  • Marking individual TypedDict items as required or potentially-missing
  • Data Class Transforms

🪸 Personal Views

I am a constant follower of python news and updates and the moment this update came out I started looking into it.

PEP 657 -- Include Fine-Grained Error Locations in Tracebacks

When printing tracebacks, the interpreter will now point to the exact expression that caused the error instead of just the line.

PEP 680 -- tomllib: Support for Parsing TOML in the Standard Library

A new module, tomllib, was added for parsing TOML. (Contributed by Taneli Hukkinen in bpo-40059)

Updated Modules

  • math.exp2(): return 2 raised to the power of x.
  • math.cbrt(): return the cube root of x.

and many more...

🙍 Connect with me

  • Mail - akashpattnaik.github@gamil.com
  • Github - BLUE-DEVIL1134

Top comments (0)