[Python-ideas] Positional-only parameters

MRAB python at mrabarnett.plus.com
Wed Mar 1 16:57:41 EST 2017


On 2017-03-01 21:32, Ethan Furman wrote:
> On 03/01/2017 11:53 AM, Guido van Rossum wrote:
>
>> FWIW in typeshed we've started using double leading underscore as a convention for positional-only parameters, e.g. here:
>>
>> https://github.com/python/typeshed/blob/master/stdlib/3/builtins.pyi#L936
>
> I would much rather have a single '/' to denote where positional-only ends, than have multiple leading '__'.
>
+1

This also not clear what would happen if some of the parameters had the 
leading underscores and others didn't.



More information about the Python-ideas mailing list