Python 3.12.0リリース

概要

主な新機能

  • More flexible f-string parsing , allowing many things previously disallowed (PEP 701 ).
    • 以下のような””の中に””があるような書き方ができるようになる。(わかりにくい気も)
    • コメントや改行もできるように
  • Even more improved error messages . More exceptions potentially caused by typos now make suggestions to the user.
    • エラーメッセージの可読性が向上。なぜエラーが起きてるかをサジェストしてくれる
      • 3.11以前
        • 3.12

      Type annotations