Re:Python 2.x vs 3.x use survey
by reuven on Tuesday December 31, 2013 @01:43PM
(#6992076)
The Python interactive shell could check the user's input: If it'll take infinitely long to run (e.g., an infinite generator), then it'll halt. If the code will eventually return, then it'll be run, displaying results to the user. Seems simple enough, no?
[ Parent
| on HN ]
You'll need some killer heurstics: https://en.wikipedia.org/wiki/Halting_Problem
Er, I sorta knew that I was describing the halting problem, and was wondering if someone would fail to realize my sarcasm...
Yeah, I see that "should be easy enough" at the end. My bad.