On Thu, 30 Jan 2020 20:40:50 +1300
DL Neil via Python-list <python-list@python.org> wrote:

> Why do we have [argparse] at the cmdLN and yet not have something
> similar for input?

Because argparse works on input, too?

Many examples on https://docs.python.org/3/library/argparse.html¹
explicitly pass a list of strings to parser.parse_args instead of
letting that function default to the list of command line arguments.

¹ e.g., https://docs.python.org/3/library/argparse.html#parents

Dan


-- 
“Atoms are not things.” – Werner Heisenberg
Dan Sommers, http://www.tombstonezero.net/dan
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to