How to use __name__ == "__main__" to write a python script?
209
What does if __name__ == "__main__": do?
27676
What is the proper declaration of main in C++?
58974
Getting "global name 'foo' is not defined" with Python's timeit
92568
How to retrieve a variable's name in python at runtime?
1211
How to import a module given its name as string?
135206
Can I use the variable name "type" as function argument in Python?
33643
How to program a shell script to start another script and use the same variable values
35786
Using command parameters to use another command
39126
What is the best way to call a script from another script?
119619
Injecting variables into an import namespace
41710
How can I refer to a variable using a string containing its name?
20446
How do I construct a "named character" programmatically?
122855
c# attribute over main
89858
How to pass a literal variable reference (${foo}) as program argument in a run configuration
26589
Simulating a 'local static' variable in python
55261
How do I tell a Python script to use a particular version
139233
Importing modules: __main__ vs import as module