Cosimo Lupo b7bb391033
don't use sys.exit(...) inside main(), but only under if __name__ == "__main__"
The convention is that sys.exit(...) is called only if a module is run as a script,
and that main() entry points use return statements to report exit codes: 0 (or None)
for successful execution, or any non-zero integer for errors.

E.g. see the console scripts generated when installing with pip.
2017-01-11 12:10:58 +00:00
..
2015-08-20 11:13:54 +01:00
2016-12-22 16:11:04 -06:00

This directory includes snippets that people might useful to get ideas from. The contents will come and go, don't rely on them being there or having a certain API. If you need it, copy it and modify it.

If you do and think your work is useful for others, please add a link to it here: