Coming from C++ and C#, and being just a little more than a casual python scripter, having to check if the module name is "main" feels very hacky and not very well thought through solution for running your main function. It has always bugged me.
Thanks for great article, it gave me some insight about modules.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Coming from C++ and C#, and being just a little more than a casual python scripter, having to check if the module name is "main" feels very hacky and not very well thought through solution for running your main function. It has always bugged me.
Thanks for great article, it gave me some insight about modules.