alt.hn

8/18/2026 at 9:55:32 PM

Two lines of Python that segfault the interpreter – Timofei Ivankov

https://deadlovelll.github.io/2026-08-10-conditional-annotations-set-add-crash/

by rbanffy

8/19/2026 at 4:38:18 AM

> ET_ADD trusted the compiler, and PEP 749 quietly handed user code a way to break that trust

Sigh, and I quietly closed the article as it was quietly written by AI.

That’s not just lazy — that’s uninteresting. And it’s more uninteresting than you think.

by monkpit

8/19/2026 at 8:57:38 AM

Hasn't Python always guaranteed messing with __annotations__ directly, as unsafe?

This isn't some bug. It's documented behaviour.

by shakna

8/20/2026 at 10:05:45 AM

Python doesn't try especially hard to stop you from doing stupid things in general. It's kind of core to the language that it doesn't. Hence no access modifiers. I think it's usually phrased as "we're all consenting adults".

by Doxin