Terry J. Reedy added the comment:

Demos should demonstrate proper modern code.  1. Contain decent docstrings.  2. 
Dependency on sys.argv, derived from a command line, should be in the 'if 
__name__' clause triggered when the module *is* invoked from command line. 
Especially in simple cases like this, it should be possible to import the 
module and call main(args) without involving sys.argv.  See review.

----------
nosy: +terry.reedy

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26830>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to