PyChecker must execute script?
trentm at ActiveState.com
Wed Feb 5 22:44:50 CET 2003
[Geoff Gerrietts wrote]
> I believe PyChecker imports the modules, and analyzes the resulting
> If you have not included an "if __name__ == '__main__':" conditional,
> then it is likely that importing the module and running it will be
> fundamentally identical.
To be more specific. If you put all top-level executing code within a
if __name__ == "__main__":
# top-level code here
block then you will be fine.
TrentM at ActiveState.com
More information about the Python-list