@AlSweigart pycharm used to force that and now it strips them... I guess it gets stripped if it is part of a module (in a folder with dunder init .py in it) Other wise there is a style part of it too, some people put all their code in one file and structure it like a script, some people like me prefer to make everything a library and use dunder main .py for an entry point.
Post
February 7, 2023