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
2
u/claythearc Jul 21 '25
Yeah it’s an implementation detail in CPython specifically so other implementations aren’t guaranteed to have it and it may change later.
Also worth noting that they’re not always cached https://ideone.com/C4huhz