Tags
versions
3 posts
The Upgrade Halved Four Numbers and Made Three Worse
From 3.10 to 3.15, reads and calls land at 0.46x to 0.54x. A coroutine object is 1.79x bigger, get_type_hints is 1.40x slower and importing asyncio costs 1.40x more.
UTF-8 by Default Fixes a Silent Bug and Adds a Loud One
Under a Latin-1 locale, CPython 3.13 reads a UTF-8 file as mojibake and raises nothing. 3.15 reads it correctly and raises on the Latin-1 file 3.13 read fine.
A NamedTuple Read Cost 0.81x a Plain One, Then 1.9x
On CPython 3.10 a NamedTuple attribute read cost 0.81x a read through an instance dictionary. On 3.11 it costs 1.90x. Nothing about NamedTuple changed.