Raymond Hettinger added the comment:

After more thought on the subject, I think the n-queens demo should be left as 
is.  The demo is principally about the class and not about being a command-line 
tool.  Also, it is reasonable and appropriate to use sys.argv directly for such 
a simple API.  How to do so is a legitimate example itself.  Not all uses of 
sys.argv need argparse.

In other words, I don't think the proposed changes makes anyone's life better 
and in the some ways makes the example less approachable for teaching purposes 
(my area of expertise).

The example works fine as-is.  Changing it seems like unnecessary code churn 
and already eating some of our time.

Thank you for the idea.  It never hurts to look around for ways to improve 
code.  Though I don't think there was a new win in this case, don't let that 
discourage you.  Please continue to look for improvements :-)

----------
assignee:  -> rhettinger
resolution:  -> rejected
stage:  -> resolved
status: open -> closed

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

Reply via email to