代入式の導入がされたPython 3.8.0がリリース、Visual Studio Codeでも機能が強化

Python

Python

スクリプト言語Pythonの最新版である3.8.0がリリースされました。

Python 3.8.0では代入式が導入

新機能がこちら。

PEP 572, Assignment expressions
PEP 570, Positional-only arguments
PEP 587, Python Initialization Configuration (improved embedding)
PEP 590, Vectorcall: a fast calling protocol for CPython
PEP 578, Runtime audit hooks
PEP 574, Pickle protocol 5 with out-of-band data
Typing-related: PEP 591 (Final qualifier), PEP 586 (Literal types), and PEP 589 (TypedDict)
Parallel filesystem cache for compiled bytecode
Debug builds share ABI as release builds
f-strings support a handy = specifier for debugging
continue is now legal in finally: blocks
on Windows, the default asyncio event loop is now ProactorEventLoop
on macOS, the spawn start method is now used by default in multiprocessing
multiprocessing can now use shared memory segments to avoid pickling costs between processes
typed_ast is merged back to CPython
LOAD_GLOBAL is now 40% faster
pickle now uses Protocol 4 by default, improving performance

Python Release Python 3.8.0 | Python.org

今回はセイウチ演算子(:=)と呼ばれる演算子の導入で代入式が実現されています。

Visual Studio Codeでも機能が強化

また、「Visual Studio Code」の10月のアップデートでPython関連機能が強化され、Visual Studio Code上でもJupyter Notebooksのネイティブ編集が可能となり利便性が向上しています。