Oddbean new post about | logout
 **Here's What's New in Python 3.12**

Monday will see the stable release of Python 3.12. Here's an article summarizing what the new version will include:
\- enhanced error messages
 — performance upgrades
\- the introduction of Immortal objects and sub interpreters
\- changes to F strings
\- modifications related to types and type annotations
\- the removal of certain modules
\- improvements in type implementations

Modules from the standard library are now suggested as part of the error messages, making it easier for developers to troubleshoot and resolve issues...

Another significant addition in Python 3.12 is the introduction of sub interpreters. Each sub interpreter has its own Global Interpreter Lock, enabling Python to better utilize multiple CPU cores. This feature can significantly enhance the performance of Python programs, especially those that are designed to take advantage of multi-core processors...

The pathlib module now has a walk method, allowing for the exploration of directory trees. This new feature can make it easier for developers to work with file systems in their Python programs. Python 3.12 also supports the ability to monitor calls, returns, lines, exceptions, and other events using instrumentation. This feature can be very useful for debugging and performance tuning.

https://a.fsdn.com/sd/twitter_icon_large.png (http://twitter.com/home?status=Here's+What's+New+in+Python+3.12%3A+https%3A%2F%2Fdevelopers.slashdot.org%2Fstory%2F23%2F10%2F01%2F0531216%2F%3Futm_source%3Dtwitter%26utm_medium%3Dtwitter)https://a.fsdn.com/sd/facebook_icon_large.png (http://www.facebook.com/sharer.php?u=https%3A%2F%2Fdevelopers.slashdot.org%2Fstory%2F23%2F10%2F01%2F0531216%2Fheres-whats-new-in-python-312%3Futm_source%3Dslashdot%26utm_medium%3Dfacebook)

Read more of this story (https://developers.slashdot.org/story/23/10/01/0531216/heres-whats-new-in-python-312?utm_source=rss1.0moreanon&utm_medium=feed) at Slashdot.

https://developers.slashdot.org/story/23/10/01/0531216/heres-whats-new-in-python-312?utm_source=rss1.0mainlinkanon&utm_medium=feed