Geeks3D Forums

Tech Forums => 3D-Tech News Around The Web => Topic started by: JeGX on June 06, 2019, 11:04:17 AM

Title: Python 3.8.0b1 available
Post by: JeGX on June 06, 2019, 11:04:17 AM
Quote
Python 3.8 is still in development. This release, 3.8.0b1 is the first of four planned beta release previews. Beta release previews are intended to give the wider community the opportunity to test new features and bug fixes and to prepare their projects to support the new feature release.


Major new features of the 3.8 series, compared to 3.7
ome of the new major new features and changes in Python 3.8 are:
- 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

Links:
- https://www.python.org/downloads/release/python-380b1/


For devs who embed Python in their apps (like in GeeXLab (https://www.geeks3d.com/geexlab/) or in Blender), this PEP (Python Enhancement Proposals) is interesting:
Quote
Add a new C API to configure the Python Initialization providing finer control on the whole configuration and better error reporting.
- PEP 587 -- Python Initialization Configuration (https://www.python.org/dev/peps/pep-0587/)


(https://www.geeks3d.com/public/jegx/2018q4/python-logo-601px.png)