Re: [Python-Dev] Positional-only parameters in Python

2018-01-22 Thread Nick Coghlan
On 20 January 2018 at 15:00, Guido van Rossum wrote: > On Fri, Jan 19, 2018 at 8:47 PM, Nick Coghlan wrote: >> >> On 20 January 2018 at 07:49, Mario Corchero wrote: >> > I am happy to put some work into this (and Pablo Galindo in CC

Re: [Python-Dev] Positional-only parameters in Python

2018-01-21 Thread Mario Corchero
Ups, indeed, totally missed it. Removed it from https://github.com/mariocj89/peps/blob/pep-pos-only/pep-.rst On 21 January 2018 at 21:44, Larry Hastings wrote: > > > On 01/21/2018 05:59 AM, Mario Corchero wrote: > > Credit for making left option groups higher precedence

Re: [Python-Dev] Positional-only parameters in Python

2018-01-21 Thread Larry Hastings
On 01/21/2018 05:59 AM, Mario Corchero wrote: Credit for making left option groups higher precedence goes to Nick Coghlan. (Conversation in person at PyCon US 2013.) Actually Argument Clinic has always given left option groups higher precedence.  This theoretically allows Argument Clinic to

Re: [Python-Dev] Positional-only parameters in Python

2018-01-21 Thread Mario Corchero
Thanks, Oleg! Fixed that and a bunch more typos in the GitHub document. https://github.com/mariocj89/peps/blob/pep-pos-only/pep-.rst On 21 January 2018 at 14:16, Oleg Broytman wrote: > Hi! A few minor corrections below. > > On Sun, Jan 21, 2018 at 01:59:49PM +, Mario

Re: [Python-Dev] Positional-only parameters in Python

2018-01-21 Thread Oleg Broytman
Hi! A few minor corrections below. On Sun, Jan 21, 2018 at 01:59:49PM +, Mario Corchero wrote: > Author: Larry Hastings , Pablo Galindo > , Mario Corchero ^ Add a space or a few here - this is the way for

Re: [Python-Dev] Positional-only parameters in Python

2018-01-21 Thread Mario Corchero
Here is the proposal we have worked on (Pablo and I). I've added Larry as co-author given that a good chunk of the content and the idea comes from his PEP. Larry, if you don't want to appear as such please let us know. Thanks! Rendered content:

Re: [Python-Dev] Positional-only parameters in Python

2018-01-20 Thread Guido van Rossum
On Sat, Jan 20, 2018 at 1:25 AM, Mario Corchero wrote: > OK, if no one has anything against, Pablo and I can start a PEP just for > the ‘/‘ simple syntax (without the argument group part). > Go for it! Note that your target will be Python 3.8. -- --Guido van Rossum

Re: [Python-Dev] Positional-only parameters in Python

2018-01-20 Thread Mario Corchero
OK, if no one has anything against, Pablo and I can start a PEP just for the ‘/‘ simple syntax (without the argument group part). On Sat, 20 Jan 2018 at 07:17, Larry Hastings wrote: > > > On 01/19/2018 08:47 PM, Nick Coghlan wrote: > > - proposing the full PEP 547, including

Re: [Python-Dev] Positional-only parameters in Python

2018-01-19 Thread Larry Hastings
On 01/19/2018 08:47 PM, Nick Coghlan wrote: - proposing the full PEP 547, including the "argument groups" feature (which is a bigger change, but allows the expression of signatures like "range([start,] stop, [step,] /)") I hope we don't go down that route. I added support for "argument

Re: [Python-Dev] Positional-only parameters in Python

2018-01-19 Thread Guido van Rossum
On Fri, Jan 19, 2018 at 8:47 PM, Nick Coghlan wrote: > On 20 January 2018 at 07:49, Mario Corchero wrote: > > I am happy to put some work into this (and Pablo Galindo in CC offered to > > pair on it) but it is not clear for me whether the next step is

Re: [Python-Dev] Positional-only parameters in Python

2018-01-19 Thread Nick Coghlan
On 20 January 2018 at 07:49, Mario Corchero wrote: > I am happy to put some work into this (and Pablo Galindo in CC offered to > pair on it) but it is not clear for me whether the next step is drafting a > new PEP or this is just blocked on "re-evaluating" the current one. I

Re: [Python-Dev] Positional-only parameters in Python

2018-01-19 Thread Guido van Rossum
Not so fast. I think a PEP is still needed. This change has more repercussions than argument clinic, e.g. it affects 3rd party tooling and bytecode. On Jan 19, 2018 17:00, "Terry Reedy" wrote: > On 1/19/2018 4:49 PM, Mario Corchero wrote: > >> I am happy to put some work into

Re: [Python-Dev] Positional-only parameters in Python

2018-01-19 Thread Terry Reedy
On 1/19/2018 4:49 PM, Mario Corchero wrote: I am happy to put some work into this (and Pablo Galindo in CC offered to pair on it) but it is not clear for me whether the next step is drafting a new PEP or this is just blocked on "re-evaluating" the current one. If someone can clarify we can

Re: [Python-Dev] Positional-only parameters in Python

2018-01-19 Thread Mario Corchero
I am happy to put some work into this (and Pablo Galindo in CC offered to pair on it) but it is not clear for me whether the next step is drafting a new PEP or this is just blocked on "re-evaluating" the current one. If someone can clarify we can put something together. Thanks! On 18 January

Re: [Python-Dev] Positional-only parameters in Python

2018-01-18 Thread Nick Coghlan
On 18 January 2018 at 19:26, Larry Hastings wrote: > Would we be adding yet a third argument-parsing function, > PyArg_ParseTupleAndKeywordsWithPositionalOnly()? Checking the docs, it turns out PyArg_ParseTupleAndKeywords already gained positional-only argument support in 3.6

Re: [Python-Dev] Positional-only parameters in Python

2018-01-18 Thread Victor Stinner
2018-01-18 10:26 GMT+01:00 Larry Hastings : > Why did Argument Clinic choose that syntax? It was suggested by one Guido > van Rossum in March 2012: (...) > I'm not wading into the debate over what syntax Python should use if it adds > positional-only parameters, except to say

Re: [Python-Dev] Positional-only parameters in Python

2018-01-18 Thread Larry Hastings
On 01/17/2018 08:29 AM, Ethan Furman wrote: On 01/17/2018 08:14 AM, Serhiy Storchaka wrote: 17.01.18 16:34, Victor Stinner пише: In Februrary 2017, I proposed on python-ideas to change the Python syntax to allow to declare positional-only parameters in Python:

Re: [Python-Dev] Positional-only parameters in Python

2018-01-17 Thread Nick Coghlan
On 18 January 2018 at 03:16, Sanyam Khurana wrote: > On Wed, Jan 17, 2018 at 8:04 PM, Victor Stinner > wrote: >> It seems like a PEP is needed. > > I followed the threads mentioned above, which led me to PEP 457: >

Re: [Python-Dev] Positional-only parameters in Python

2018-01-17 Thread Sanyam Khurana
Hi, On Wed, Jan 17, 2018 at 8:04 PM, Victor Stinner wrote: > Hi, > > In Februrary 2017, I proposed on python-ideas to change the Python > syntax to allow to declare positional-only parameters in Python: > >

Re: [Python-Dev] Positional-only parameters in Python

2018-01-17 Thread Guido van Rossum
Let's aim for 3.8 here. We're already cramming in a lot of stuff for the feature freeze. On Wed, Jan 17, 2018 at 8:52 AM, Barry Warsaw wrote: > On Jan 17, 2018, at 08:14, Serhiy Storchaka wrote: > > > > The main problem -- designing a syntax that does not

Re: [Python-Dev] Positional-only parameters in Python

2018-01-17 Thread Barry Warsaw
On Jan 17, 2018, at 08:14, Serhiy Storchaka wrote: > > The main problem -- designing a syntax that does not look ugly. I think there > are too small time is left before features freezing for experimenting with > it. It would be better to make such changes at the early

Re: [Python-Dev] Positional-only parameters in Python

2018-01-17 Thread Oleg Broytman
On Wed, Jan 17, 2018 at 08:29:16AM -0800, Ethan Furman wrote: >def some_func(a, b, /, this, that, *, the_other): ># some stuff > > Everything before the slash is positional-only, between the slash and star > is positional-or-keyword, and after the star is

Re: [Python-Dev] Positional-only parameters in Python

2018-01-17 Thread Ethan Furman
On 01/17/2018 08:14 AM, Serhiy Storchaka wrote: 17.01.18 16:34, Victor Stinner пише: In Februrary 2017, I proposed on python-ideas to change the Python syntax to allow to declare positional-only parameters in Python: https://mail.python.org/pipermail/python-ideas/2017-February/044879.html

Re: [Python-Dev] Positional-only parameters in Python

2018-01-17 Thread Serhiy Storchaka
17.01.18 16:34, Victor Stinner пише: In Februrary 2017, I proposed on python-ideas to change the Python syntax to allow to declare positional-only parameters in Python: https://mail.python.org/pipermail/python-ideas/2017-February/044879.html

Re: [Python-Dev] Positional-only parameters in Python

2018-01-17 Thread Mario Corchero
Hi Victor, I'd like to work on it if you accept "a random person" to work on it (saying it in case the mail was directed to core developers). Regards, Mario On 17 January 2018 at 14:34, Victor Stinner wrote: > Hi, > > In Februrary 2017, I proposed on python-ideas to

[Python-Dev] Positional-only parameters in Python

2018-01-17 Thread Victor Stinner
Hi, In Februrary 2017, I proposed on python-ideas to change the Python syntax to allow to declare positional-only parameters in Python: https://mail.python.org/pipermail/python-ideas/2017-February/044879.html https://mail.python.org/pipermail/python-ideas/2017-March/044956.html There are