Two lines of Python that segfault the interpreter – Timofei Ivankov (deadlovelll.github.io) 1 points by rbanffy 25d ago ↗ HN
[–] monkpit 25d ago ↗ > ET_ADD trusted the compiler, and PEP 749 quietly handed user code a way to break that trustSigh, and I quietly closed the article as it was quietly written by AI.
[–] shakna 25d ago ↗ Hasn't Python always guaranteed messing with __annotations__ directly, as unsafe?This isn't some bug. It's documented behaviour. [–] Doxin 24d ago ↗ 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".
[–] Doxin 24d ago ↗ 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".
3 comments
[ 0.28 ms ] story [ 7.2 ms ] threadSigh, and I quietly closed the article as it was quietly written by AI.
This isn't some bug. It's documented behaviour.