[Python-ideas] Re: Simple feature for argparse.py

2019-10-09 Thread Chris Angelico
On Thu, Oct 10, 2019 at 2:37 PM brent bejot wrote: > > > > On Wed, Oct 9, 2019 at 11:01 PM Ryan Gonzalez wrote: >> >> I believe you want Python 3.7's parse_intermixed_args: >> https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.parse_intermixed_args >> >> A quick test seems t

[Python-ideas] Re: Simple feature for argparse.py

2019-10-09 Thread brent bejot
On Wed, Oct 9, 2019 at 11:01 PM Ryan Gonzalez wrote: > I believe you want Python 3.7's parse_intermixed_args: > https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.parse_intermixed_args > > A quick test seems to work: > > > import argparse > > p = argparse.ArgumentParser() > p

[Python-ideas] Re: Simple feature for argparse.py

2019-10-09 Thread Ryan Gonzalez
I believe you want Python 3.7's parse_intermixed_args: https://docs.python.org/3/library/argparse.html#argparse.ArgumentParser.parse_intermixed_args A quick test seems to work: import argparse p = argparse.ArgumentParser() p.add_argument('files', nargs='*') p.add_argument('-f', '--force', actio

[Python-ideas] Re: Simple feature for argparse.py

2019-10-09 Thread Chris Angelico
On Thu, Oct 10, 2019 at 1:50 PM brent bejot wrote: > > Hello all, > > Aspiring contributor here. I am not at all certain that this is the right > place to discuss this. Do refer me to a better location if I'm out of place. > This is the perfect place to discuss this! Welcome on in. > I would

[Python-ideas] Simple feature for argparse.py

2019-10-09 Thread brent bejot
Hello all, Aspiring contributor here. I am not at all certain that this is the right place to discuss this. Do refer me to a better location if I'm out of place. I would like to add a simple feature to the argparse library. I frequently find myself writing small utilities, stylistically simila

[Python-ideas] Re: Adding support for adequately tagging AIX (pep425) to support distributed wheels

2019-10-09 Thread Michael Felt
On 09/10/2019 06:49, Pradyun Gedam wrote: > On Mon, 2 Sep 2019 at 2:24 AM, Michael Felt wrote: > >> Among other places, Python ideas was recommended as a place to goto. >> >> In the meantime I have been discussing this on pypa/pip (mainly), and also >> on wheel and packaging. Even submitted PRs. B

[Python-ideas] adding "port" parameter to urllib.parse.urlunparse

2019-10-09 Thread AMIR MOHAMMADI via Python-ideas
Hi. I'm a newbie and Python ideas was recommended to me as a place to go to. I think this is a good idea that have port parameter in "urlunparse" method. (refer to: https://bugs.python.org/issue38408) One way is to add keyword parameters to urlunparse, like: def urlunparse(components, *, usernam