HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · 6 months agoPython needs an actual default functionlemmy.mlimagemessage-square8linkfedilinkarrow-up11arrow-down10file-text
arrow-up11arrow-down1imagePython needs an actual default functionlemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · 6 months agomessage-square8linkfedilinkfile-text
Also, do y’all call main() in the if block or do you just put the code you want to run in the if block?
minus-squareMTK@lemmy.worldlinkfedilinkarrow-up0arrow-down1·6 months agoI didn’t say it wasn’t real, it’s just a scripting structure and not object oriented, so it doesn’t make sense for it to start by looking for a “main” object
I didn’t say it wasn’t real, it’s just a scripting structure and not object oriented, so it doesn’t make sense for it to start by looking for a “main” object