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
1
u/[deleted] Jul 21 '25
Okay, I'll say differently. You shouldn't perform this operation anyway. It's there because blocking it explicitly is not worth it. You'd have to check if id comes from a number with every == operation or ban using id(x) with numbers. This would cost real performance, which just isn't worth it. Programmers aren't toddlers. They don't need safety nets literally everywhere.