In article <mailman.665.1331806024.3037.python-l...@python.org>, Robert Kern <robert.k...@gmail.com> wrote:
> Yes. Not all type(default) types can be called with a string to produce a > valid > value. Note that "type=" is really a misnomer. argparse doesn't really want a > type object there; it wants a converter function that takes a string to an > object. Orthogonal to my original suggestion, I agree that this is misnamed. I'm +1 on the idea of renaming it to conversion= or something like that (we'd need to keep type= around as a deprecated synonym for backwards compatability). It's really hard to get your head around "type=open". -- http://mail.python.org/mailman/listinfo/python-list