you are viewing a single comment's thread
view the rest of the comments
[–] 17 points 2 years ago (2 children)

If you have a variable called exit you've overwritten the function in that scope, and won't be able to execute it.

e.g.

>>> exit=1
>>> exit()
Traceback (most recent call last):
  File "", line 1, in 
TypeError: 'int' object is not callable
>>>
  • source
  • parent
  • hideshow 2 child comments