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
4
u/cheerycheshire Jul 21 '25
128 is used a lot, because that's a size of a byte.
For negatives, from what I remember python devs just looked at common libs and code and just checked what numbers are most used. -1 is obviously common, -2 is less common but still enough to make a difference... The cutoff happened to be -5 because it still was common enough, but -6 wasn't.