News for hackers. Stuff that matters.
Re:Curing Python's Neglect by martey on Saturday May 30, 2009 @01:07AM (#633276)
The only reason I could think of this warning (which I have run across entirely too many times) was in case someone had a variable called 'exit'. Yet:

  >>> exit = True
  >>> exit
  True
  >>> exit()
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
  TypeError: 'bool' object is not callable
The only way to then exit is Ctrl-D, but the shell will not prompt you to enter it!
Re:Curing Python's Neglect by ii on Saturday May 30, 2009 @02:17AM (#633331)
> The only way to then exit is Ctrl-D

Nope.

  >>> __builtins__.exit()
Re:Curing Python's Neglect by ciupicri on Saturday May 30, 2009 @07:40AM (#633537)
Or Ctrl-Z (EOF) on Windows.