Enchancement suggestion for argparse: intuit type from default

Ben Finney ben+python at benfinney.id.au
Wed Mar 14 21:22:13 EDT 2012


Roy Smith <roy at panix.com> writes:

> I'll admit I hadn't considered that, but I don't see it as a major
> problem. The type intuition could be designed to only work for types
> other than NoneType.

−1, then. It's growing too many special cases, and is no longer simple
to describe, so that indicates it's probably a bad idea.

-- 
 \     “[W]e are still the first generation of users, and for all that |
  `\      we may have invented the net, we still don't really get it.” |
_o__)                                                   —Douglas Adams |
Ben Finney



More information about the Python-list mailing list