HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · 7 months agoPython needs an actual default functionlemmy.mlimagemessage-square13fedilinkarrow-up14arrow-down10file-text
arrow-up14arrow-down1imagePython needs an actual default functionlemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · 7 months agomessage-square13fedilinkfile-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·7 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