Python 3.12.0 (2023-10-02) ¶
-
https://peps.python.org/pep-0693/ (Python 3.12 Release Schedule)
-
https://docs.python.org/3.12/whatsnew/changelog.html#changelog
-
https://www.youtube.com/watch?v=IV8OZY4194U&ab_channel=anthonywritescode
-
https://realpython.com/python-news-april-2023/#python-3120-alpha-7-is-now-available
-
https://www.bitecode.dev/p/python-312-what-didnt-make-the-headlines
-
https://docs.python.org/3.12/whatsnew/changelog.html#python-3-12-0-final
Annonce Python 3.12 ¶
#Python3.12.0 #Python3.12 #Python
-
Python 3.12.0 (final, 2023-10-02) now available.
-
http://sethmlarson.dev/security-developer-in-residence-weekly-report-13 (Python 3.12.0 from a supply chain security perspective)
-
https://www.bitecode.dev/p/python-312-what-didnt-make-the-headlines
Annonce Python 3.12 rc2 ¶
New grammar features ¶
Interpreter improvements ¶
-
https://docs.python.org/3.12/whatsnew/3.12.html#whatsnew312-pep684
-
https://docs.python.org/3.12/whatsnew/3.12.html#pep-684-a-per-interpreter-gil
Sub-interpreters may now be created with a unique GIL per interpreter. This allows Python programs to take full advantage of multiple CPU cores .
New typing features ¶
-
PEP 688 Making the buffer protocol accessible in Python
-
PEP 698 : Override Decorator for Static Typing
PEP 692: Using TypedDict for more precise **kwargs typing ¶
PEP 692: Using TypedDict for more precise **kwargs typing
Typing **kwargs in a function signature as introduced by PEP 484 allowed for valid annotations only in cases where all of the **kwargs were of the same type.
This PEP specifies a more precise way of typing **kwargs by relying on typed dictionaries
from typing import TypedDict, Unpack
class Movie(TypedDict):
name: str
year: int
def foo(**kwargs: Unpack[Movie]):
pass
See PEP 692 for more details .
(Contributed by Franek Magiera in gh-103629 )
what-didnt-make-the-headlines ¶
And my favorite, an uid generator:
python3.12 -m uuid
a3b10cab-064d-456e-ac9a-58a125171218
Other (Remove wstr from Unicode and python 3.12 releases) ¶
Improved Modules ¶
calendar ¶
-
Add enums Month and Day. (Contributed by Prince Roshan in gh-103636.)
unicodedata ¶
The Unicode database has been updated to version 15.0.0. (Contributed by Benjamin Peterson in gh-96734 ).