Python3.12の新機能 dummy111222333

PEP 701: f文字列の形式定義PEP 695: 型パラメータ文法その他の型ヒント関連機能PEP 688: バッファープロトコルをPythonで利用可能にPEP 684: インタープリター別GILPEP 683: 固定参照カウントによる永続オブジェクトPEP 709: 内包式のインライン化

https://mail.python.org/archives/list/numpy-discussion@python.org/thread/A3CWGUGK23D33ECXCX6C7JN6OK273KAJ/

https://github.com/numpy/numpy/issues/665

https://github.com/numpy/numpy/issues/14384

https://github.com/python/cpython/issues/79601

https://peps.python.org/pep-0734/

https://modpython.org/live/mod_python-2.7/doc/pyapi-interps.html

PEP 632: Remove the distutils package. See the migration guide for advice on its replacement.

Added itertools.batched() for collecting into even-sized tuples where the last batch may be shorter than the rest. (Contributed by Raymond Hettinger in gh-98363.)

Add os.listdrives(), os.listvolumes() and os.listmounts() functions on Windows for enumerating drives, volumes and mount points. (Contributed by Steve Dower in gh-102519.)

Add case_sensitive optional parameter to pathlib.Path.glob(), pathlib.Path.rglob() and pathlib.PurePath.match() for matching the path’s case sensitivity, allowing for more precise control over the matching process.

Add convenience variables to hold values temporarily for debug session and provide quick access to values like the current frame or the return value. (Contributed by Tian Gao in gh-103693.)

sqlite3 Add a command-line interface. (Contributed by Erlend E. Aasland in gh-77617.)

Add the autocommit attribute to Connection and the autocommit parameter to connect() to control PEP 249-compliant transaction handling. (Contributed by Erlend E. Aasland in gh-83638.)

Add entrypoint keyword-only parameter to load_extension(), for overriding the SQLite extension entry point. (Contributed by Erlend E. Aasland in gh-103015.)

Add getconfig() and setconfig() to Connection to make configuration changes to a database connection. (Contributed by Erlend E. Aasland in gh-103489.)

The tempfile.NamedTemporaryFile function has a new optional parameter delete_on_close (Contributed by Evgeny Zorin in gh-58451.)

Add os.path.isjunction() to check if a given path is a junction. (Contributed by Charles Machalow in gh-99547.)

Add os.path.splitroot() to split a path into a triad (drive, root, tail). (Contributed by Barney Gale in gh-101000.)

The tokenize module includes the changes introduced in PEP 701. (Contributed by Marta Gómez Macías and Pablo Galindo in gh-102856.) See Porting to Python 3.12 for more information on the changes to the tokenize module.

uuid Add a command-line interface. (Contributed by Adam Chhina in gh-88597.)

Copyright © 2001-2023 python.jp Privacy Policy python_japan
Amazon.co.jpアソシエイト
Amazonで他のPython書籍を検索