unlawfulbooger to Programmer Humor@lemmy.ml · 1 year agoOn this deserted island I could use some help()imagemessage-square31fedilinkarrow-up11.2K
arrow-up11.2KimageOn this deserted island I could use some help()unlawfulbooger to Programmer Humor@lemmy.ml · 1 year agomessage-square31fedilink
minus-squareBronco1676@lemmy.mllinkfedilinkarrow-up17·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 >>>
minus-squareEmergMemeHologram@startrek.websitelinkfedilinkarrow-up17·1 year agoReminds me of setting pi = 3 in my friends matlab subroutines in school.
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.
Reminds me of setting pi = 3 in my friends matlab subroutines in school.
wow it does do that. cool