Software-update: Python 3.15
Python is een objectgeoriënteerde programmeertaal die kan worden gebruikt om eenvoudige tot complexe platformonafhankelijke applicaties te ontwikkelen. Het is in de jaren negentig ontworpen door Guido van Rossum, die destijds in Amsterdam voor het CWI werkte. Guido was als BDFL betrokken bij de ontwikkeling van Python. Hij heeft daarnaast voor Dropbox gewerkt, ging daarna met pensioen en toen dat niet echt beviel, ging hij aan de slag bij Microsoft. Versie 3.15 is uitgekomen en de belangrijkste veranderingen die daarin zijn aangebracht zijn hieronder voor je op een rijtje gezet.
Interpreter improvementsPEP 661: Add sentinel built-in typePEP 686: Python now uses UTF-8 as the default encodingPEP 798: Unpacking in comprehensionsPEP 810: Explicit lazy imports for faster startup timesPEP 814: Add frozendict built-in typePEP 829: Package startup configuration filesThe experimental JIT compiler has been significantly upgraded, with 7-8% geometric mean performance improvement on x86-64 Linux over the standard interpreter, and 11-12% speedup on AArch64 macOS over the tail-calling interpreterImproved error messages
PEP 661: Add sentinel built-in typePEP 686: Python now uses UTF-8 as the default encodingPEP 798: Unpacking in comprehensionsPEP 810: Explicit lazy imports for faster startup timesPEP 814: Add frozendict built-in typePEP 829: Package startup configuration filesThe experimental JIT compiler has been significantly upgraded, with 7-8% geometric mean performance improvement on x86-64 Linux over the standard interpreter, and 11-12% speedup on AArch64 macOS over the tail-calling interpreterImproved error messagesSignificant improvements in the standard libraryPEP 799: A dedicated profiling package for organizing Python profiling toolsPEP 799: Tachyon: High frequency statistical sampling profilerMore color
PEP 799: A dedicated profiling package for organizing Python profiling toolsPEP 799: Tachyon: High frequency statistical sampling profilerMore colorNew typing featuresPEP 728: TypedDict with typed extra itemsPEP 747: Annotating type forms with TypeFormPEP 800: Disjoint bases in the type system
PEP 728: TypedDict with typed extra itemsPEP 747: Annotating type forms with TypeFormPEP 800: Disjoint bases in the type systemC API improvementsPEP 782: A new PyBytesWriter C API to create a Python bytes objectPEP 788: Protection against finalization in the C APIPEP 803, 820, 793: Stable ABI for free-threaded builds and related C API
PEP 782: A new PyBytesWriter C API to create a Python bytes objectPEP 788: Protection against finalization in the C APIPEP 803, 820, 793: Stable ABI for free-threaded builds and related C APIBuild changesPEP 831: Frame pointers are enabled by default for improved system-level observability
PEP 831: Frame pointers are enabled by default for improved system-level observabilityRelease changesThe official Windows 64-bit binaries now use the tail-calling interpreterThe official macOS binaries now install free-threading support by default
The official Windows 64-bit binaries now use the tail-calling interpreterThe official macOS binaries now install free-threading support by defaultFor more details on the changes to Python 3.15, see What’s new in Python 3.15.
Attention macOS 27.0 IDLE or tkinter usersWhen running IDLE or other GUI applications that use the tkinter module, these applications may hang when using an application's menu command that opens a dialog (for example, IDLE's About IDLE, Settings, and Open Module commands) resulting in a spinning beach ball with Force Quit needed.
This problem is due to an operating system behavior change in macOS 27.0 that is believed to affect all current versions of the Tk graphics toolkit and thus the tkinter module in all current Python versions.
If you depend on Tk-based applications (like IDLE) on macOS, you may want to consider deferring installing macOS 27.0 until a Tk or macOS workaround is available or testing that your application workflow is not affected. Follow issue #158053 for updates.
Source:
Tweakers.net