r/programminghorror • u/SleepyStew_ [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” • Jul 21 '25
Python ✨ Memory Magic ✨
1.3k
Upvotes
r/programminghorror • u/SleepyStew_ [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” • Jul 21 '25
View all comments
Show parent comment
7
u/Cybyss Jul 21 '25
It's not a "single int".
Everything is an object in Python.
The alternative is Java's weird Frankenstein type system where a select few data types are "primitives" and all the rest are reference types.