The new Python release features an interactive command line and allows the global interpreter lock to be deactivated.
Python 3.13 has been released with a slight delay on the home straight. The new interactive shell aims to make development more convenient. In addition, the global interpreter lock can now be deactivated to allow multithreaded applications to run more efficiently.
Finally, the new version includes an experimental just-in-time compiler .Python 3.13 uses a new interactive shell by default, which has emerged from the PyPy project and offers significantly more convenience than the previous one. The new REPL allows code blocks from several lines to be edited directly instead of navigating through the command history line by line. Inserting code blocks is now also more convenient:activates the "Paste Mode", which inserts complete content instead of considering the content as finished when there are empty lines, as was previously the case.so that the code can be copied directly. For a better overview, the REPL now offers color syntax highlighting for prompts and tracebacks by default.If you want to use the old interactive shell instead of the new one or have to for backwards compatibility reasons, you can activate it via the environment variableto introduce a flag in Python 3.13 to deactivate the Global Interpreter Lock . The GIL is intended to guarantee thread security by ensuring that only one thread is running at a time. However, Python cannot use the potential of multiprocessor systems or multi-core processors efficiently. Python 3.13 now introduces the so-called free-threaded mode, which works without a global interpreter lock. The mode is marked as experimental, and the description warns that bugs and significantly degraded single-threaded performance are still to be expected. For applications without GIL, a suitable binary is available, which is part of the official installation packages for Windows and macOS. Finally, the GIL can be deactivated via the environment variable The new just-in-time compiler is also considered experimental. Python is an interpreted language by default: CPython does not translate the source code into machine code, but only into bytecode, which the Python interpreter interprets at runtime. The bytecode in the pyc files is a direct mapping of the source code without optimizations – unlike compiled languages such as C++ or Rust.CPython project recognizes three tiers for operating systems with different requirements. With Python 3.13, the mobile operating systems Android and iOS are considered official platforms at the lowest Tier 3. WebAssembly is now in Tier 2 in combination with WASI , while the combination with Emscripts has been dropped in the current release.: from Python 3.13, the releases receive two years of full support, followed by three years of security fixes. Previously, support was provided for one and a half years, followed by three and a half years of security fixes.
Global Interpreter Lock JIT Just-In-Time-Kompilierung Kommandozeile Multithreading Programmiersprachen Python Shell
Deutschland Neuesten Nachrichten, Deutschland Schlagzeilen
Similar News:Sie können auch ähnliche Nachrichten wie diese lesen, die wir aus anderen Nachrichtenquellen gesammelt haben.
Python verschlingt Antilope am StückEine Python verschlingt das Kalb einer Antilopenrasse. Die Bauern und Helfer bringen sie dazu, das Tier wieder herauszuwürgen.
Weiterlesen »
Python in Excel ist nun in Microsoft 365 verfügbar – mit zwei WermutstropfenBusiness-Kunden von Microsoft 365 können nun Python-Code direkt in Excel verwenden, derzeit allerdings nur unter Windows und mit Codeausführung in der Cloud.
Weiterlesen »
Frau beim Abwasch von Python überrascht: Zweistündiger KampfEine Pythonschlange ist nicht giftig. Sie tötet, indem sie sie sich um ihre Beute windet – bis das Opfer erstickt.
Weiterlesen »
Python für Einsteiger: Dateien lesen und schreibenDieser Artikel richtet sich an Anfänger in Python und erklärt grundlegende Konzepte zur Datei-Lesung und -Schreiben.
Weiterlesen »
Python tool für Bluetooth BLE Scan - liegt der fehler bei mir?Im ComputerBase-Forum diskutieren technikbegeisterte Menschen über Computer, Notebooks, Smartphones, Tablets, Games etc.
Weiterlesen »
Python 3.13: Bessere interaktive Shell und endlich Multithreading ohne GILDas neue Python-Release wartet mit einer interaktiven Kommandozeile auf und erlaubt es, den Global Interpreter Lock zu deaktivieren.
Weiterlesen »
