@unlawfulbooger@lemmy.blahaj.zone to Programmer Humor@lemmy.ml • 1 year agoOn this deserted island I could use some help()lemmy.blahaj.zoneimagemessage-square30fedilinkarrow-up11.17Karrow-down113
arrow-up11.15Karrow-down1imageOn this deserted island I could use some help()lemmy.blahaj.zone@unlawfulbooger@lemmy.blahaj.zone to Programmer Humor@lemmy.ml • 1 year agomessage-square30fedilink
minus-square@Bronco1676@lemmy.mllinkfedilink17•1 year agoIf 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 >>>
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 >>>
deleted by creator
wow it does do that. cool