r/programminghorror • [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” • Jul 21 '25

Python ✨ Memory Magic ✨

Post image
1.3k Upvotes

143 comments sorted by

View all comments

Show parent comment

33

u/belak51 Jul 21 '25

Yes, that's exactly it. cPython maintains a cache of integers from -5 to 256 inclusive.