Re: [Python-ideas] Collection type argument for argparse where nargs != None

2017-08-07 Thread Stephen J. Turnbull
David Mayo writes: > I mean, it's definitely possible, but I'd argue that's actually not any > more explicit - and, in fact, args.stuff = something(args.stuff) is > arguably less explicit because it's just an arbitrary transform, rather > than being called out as "this is the wrapper element

Re: [Python-ideas] Collection type argument for argparse where nargs != None

2017-08-04 Thread David Mayo
I mean, it's definitely possible, but I'd argue that's actually not any more explicit - and, in fact, args.stuff = something(args.stuff) is arguably less explicit because it's just an arbitrary transform, rather than being called out as "this is the wrapper element for these args." The places

Re: [Python-ideas] Collection type argument for argparse where nargs != None

2017-08-04 Thread Brett Cannon
I'm not a heavy argparse user so take my opinion with a grain of salt (and I do appreciate the time you put into proposing this), but I'm not seeing the usefulness to classify this as so pragmatic as to outweigh adding one more thing to explain about argparse. Since you're proposing just having a