Was: Dynamic Data type assignment
Dan Sommers
2QdxY4RzWzUUiLuE at potatochowder.com
Thu Jan 30 07:44:32 EST 2020
On Thu, 30 Jan 2020 20:40:50 +1300
DL Neil via Python-list <python-list at 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
More information about the Python-list
mailing list