Tech News
← Home  ·  All topics

Cpython

3 GoKawiil briefs on this topic

PyPy releases version 8.0.0 with Linux buildbot upgrade and CPython 3.12 ABI compatibility work

PyPy has shipped v8.0.0, updating its Linux build infrastructure to manylinux_2_28 images based on AlmaLinux 8, glibc 2.28, and gcc14, replacing the older gcc5 toolchain. The release also lays groundwork for supporting cp312-abi3 wheels by restructuring how PyPy's internal PyObject extension field is stored and by no longer renaming exported limited-API function names.

Python's print() can crash when called from a reentrant signal handler

An investigation into Python signal handling shows that Python signal handlers, unlike C ones, run outside the strict low-level signal context but can still be re-entered mid-execution if another signal arrives. A test script that rapidly sends SIGUSR1 signals to itself while calling print() inside the handler triggers a RuntimeError, since Python's buffered stdout object detects the reentrant write and refuses to proceed.

Python docs detail time complexity of built-in list, tuple operations

The official CPython documentation lays out Big O complexity tables for core operations on built-in types like list and tuple, covering actions such as append, insert, slicing, concatenation, and membership testing. It notes these figures apply specifically to CPython's exact built-in types, and that subclasses or other Python implementations may behave differently.