[Python-Dev] Re: Python grammar test cases

2022年5月10日 09:17:10 -0700

That's used as a literal '/' to make positional-only arguments work. For
example:
lambda x, y, /, z: x+y+z
On 2022年5月10日 at 17:11, Venkat Ramakrishnan <
[email protected]> wrote:
> I am looking at:
> https://docs.python.org/3/reference/grammar.html
>
> in which the following definition is found:
>
> lambda_slash_no_default:
> | lambda_param_no_default+ '/' ','
> | lambda_param_no_default+ '/' &':'
>
> Can someone tell me how '/' is being used here in the syntax?
>
> Thanks,
> Venkat.
> _______________________________________________
> Python-Dev mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> https://mail.python.org/mailman3/lists/python-dev.python.org/
> Message archived at
> https://mail.python.org/archives/list/[email protected]/message/WNQVENTVABM5VIVUMEPR4WTOV7GMHFXS/
> Code of Conduct: http://python.org/psf/codeofconduct/
>
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/OXIMIVB5AME7IBP6MBIGFVGH3Y5JMZKB/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to