224
Python needs an actual default function
(lemmy.ml)
Post funny things about programming here! (Or just rant about your favourite programming language.)
Because if another consumer imports it you don't want it running the main method
I can import my_script2.py into my_script.py it doesn't run the main method unless I specifically invoke my_script2.main() though.