• Bronco1676@lemmy.ml
    link
    fedilink
    arrow-up
    17
    ·
    11 months ago

    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 "<stdin>", line 1, in <module>
    TypeError: 'int' object is not callable
    >>>