News for hackers. Stuff that matters.
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?
Re:Python 2.x vs 3.x use survey by hyperpape on Tuesday December 31, 2013 @03:03PM (#6992533)
You'll need some killer heurstics: https://en.wikipedia.org/wiki/Halting_Problem
Re:Python 2.x vs 3.x use survey by reuven on Tuesday December 31, 2013 @03:25PM (#6992638)
Er, I sorta knew that I was describing the halting problem, and was wondering if someone would fail to realize my sarcasm...
Re:Python 2.x vs 3.x use survey by hyperpape on Thursday January 02, 2014 @03:12PM (#7001931)
Yeah, I see that "should be easy enough" at the end. My bad.
Re:Python 2.x vs 3.x use survey by sitkack on Tuesday December 31, 2013 @03:55PM (#6992786)
That is all programs in general, checking a specific program is totally within bounds.