15 points · by zggf · 6mo ago · 1 comment
> More interesting is int. At the time of writing this post, the current implementation of CPython pre-allocates integers from -5 to 256.
The upper bound will increase to 1024 in CPython 3.15 IIRC.
Python is weird
Here is a collection of things that surprised me about Python. Some you probably already know, but I hope some will surprise you too.
kowal.dev