Python 3.12.0リリース

概要
主な新機能
- More flexible f-string parsing , allowing many things previously disallowed (PEP 701 ).
- 以下のような””の中に””があるような書き方ができるようになる。(わかりにくい気も)
- コメントや改行もできるように
- Support for the buffer protocol in Python code (PEP 688 ).
- でbuffer protocolにアクセスできるようになる
- Even more improved error messages . More exceptions potentially caused by typos now make suggestions to the user.
- エラーメッセージの可読性が向上。なぜエラーが起きてるかをサジェストしてくれる
- 3.11以前
- 3.12
- Many large and small performance improvements (like PEP 709 and support for the BOLT binary optimizer), delivering an estimated 5% overall performance improvement.
- パフォーマンスの向上
Type annotations
- New override decorator for methods (PEP 698 ).
- が導入
- 親クラスをoverrideしてるよっていうのを明示的に示すため