24
My first Python loop printed 'hello world' 10,000 times by accident
I forgot a colon and the print statement ran nonstop for a full minute. Anyone know a good way to stop a runaway script?
2 comments
Log in to join the discussion
Log In2 Comments
felixb252d ago
Oh man, that's the worst feeling. I mean, I once had a loop that just kept opening new terminal windows until my whole computer froze. @nancyd85 mentioning the jet engine fan noise is way too real, it's pure panic. I just yank the power cord now if ctrl-c doesn't work fast enough. Maybe it's just me but that minute feels like an hour when you're watching it go crazy.
6
nancyd852d ago
Ever accidentally created a new text file called 'stop.txt' just to kill a script? I've been there, frantically hitting ctrl-c while my laptop fan sounds like a jet engine. It's a rite of passage for sure.
3