query: When should we have main() in python script?
positive_passages.docid: 209
positive_passages.text: What does if __name__ == "__main__": do?
negative_passages.docid: 28098
negative_passages.text: When would you call java's thread.run() instead of thread.start()?
negative_passages.docid: 14817
negative_passages.text: Why is __init__() always called after __new__()?
negative_passages.docid: 56606
negative_passages.text: Why is main() in java void?
negative_passages.docid: 120826
negative_passages.text: calling main() in main() in c
negative_passages.docid: 42340
negative_passages.text: When using os.execlp, why `python` needs `python` as argv[0]
negative_passages.docid: 88543
negative_passages.text: Why does this work in the Python IDLE shell but not when I run it as a Python script from the command prompt?
negative_passages.docid: 37827
negative_passages.text: Proper way to execute a script on system startup?
negative_passages.docid: 128915
negative_passages.text: Executing code before main()
negative_passages.docid: 67816
negative_passages.text: What is the use of multiple main methods?
negative_passages.docid: 158219
negative_passages.text: What's the difference between `raw_input()` and `input()` in Python 3?
negative_passages.docid: 54390
negative_passages.text: "does not contain a static 'main' method suitable for an entry point"
negative_passages.docid: 90386
negative_passages.text: How does Karel run without "main" method?
negative_passages.docid: 50330
negative_passages.text: What __init__ and self do in Python?
negative_passages.docid: 24052
negative_passages.text: Use 'import module' or 'from module import'?
negative_passages.docid: 39572
negative_passages.text: Make Python script globally executable
negative_passages.docid: 90444
negative_passages.text: Difference between void main and int main in C/C++?