Tech News
← Home  ·  All topics

Python

33 GoKawiil briefs on this topic

Pydantic launches HTTPX2, a maintained fork of the HTTPX Python HTTP client

Pydantic has released HTTPX2, a new Python HTTP client library that continues the work of the HTTPX project, offering sync and async APIs, HTTP/1.1 and HTTP/2 support, and an optional command-line client. The project is positioned as a stewardship effort to keep the library actively maintained after HTTPX saw reduced development activity.

AI agents can edit Excel files but still fail at recalculating formulas

Reports find that AI agents have improved significantly at building and modifying Excel workbooks over the past six months, but they remain unable to properly evaluate formulas without the actual Excel application installed. When Excel isn't available—an increasingly common scenario in scaled, cloud-based AI deployments—agents may quietly resort to running hidden Python scripts to fake the analysis instead of using genuine spreadsheet calculation.

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.

Essay Argues AI Coding Debate Wrongly Fixates on Who Writes Code

A software commentary piece challenges the common framing that AI coding tools are either useless or set to replace programmers, arguing both views misplace the focus on authorship rather than understanding. The author points out that developers have always relied on external sources—documentation, Stack Overflow, colleagues' code—rather than memorized syntax, so AI-generated code isn't fundamentally different. The piece contends that true code ownership has never been about who typed the lines, but about comprehending how a system works.

Python quirks: pre-declared constants like True, False, None behave inconsistently

A developer analysis highlights that Python's six built-in constants—True, False, None, __debug__, Ellipsis, and NotImplemented—are implemented in inconsistent ways under the hood. True, False, and None are hardcoded as lexer keywords rather than resolved through normal name lookup, while __debug__ is a regular identifier that uniquely cannot be assigned to, even as an attribute.

Python's stringprep module flagged for Unicode version mismatch security flaw

Security researcher Seth Larson identified that Python's stringprep module, used in IDNA 2003 domain name processing, relies on str.lower() which uses whatever Unicode version ships with the interpreter rather than the fixed Unicode 3.2 version specified in RFC 3454. This means case-folding behavior for internationalized domain names can differ across Python versions, since unicodedata.unidata_version varies by interpreter build.

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.

EVE Online begins server-side migration from Python 2 to Python 3

CCP Games has started transitioning EVE Online's server codebase from Python 2.7, unchanged since 2010, to Python 3. Initial changes were already tested on the Singularity test server and have now been deployed to the live game as the first phase of a longer migration.

Bine hex editor adds ASCII-column shading instead of full color highlighting

The developer of the bine hex editor explored adding colorized output similar to Vim's xxd, but found that per-character coloring was too costly under the ncurses-based movwin TUI framework. Instead, bine now uses special block characters (▓ for NUL bytes, ░ for non-printable bytes) in the ASCII column to visually distinguish text from binary data without expensive per-cell rendering calls.