That's used as a literal '/' to make positional-only arguments work. For example:
lambda x, y, /, z: x+y+z On Tue, 10 May 2022 at 17:11, Venkat Ramakrishnan < venkat.archit...@gmail.com> 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 -- python-dev@python.org > To unsubscribe send an email to python-dev-le...@python.org > https://mail.python.org/mailman3/lists/python-dev.python.org/ > Message archived at > https://mail.python.org/archives/list/python-dev@python.org/message/WNQVENTVABM5VIVUMEPR4WTOV7GMHFXS/ > Code of Conduct: http://python.org/psf/codeofconduct/ >
_______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/OXIMIVB5AME7IBP6MBIGFVGH3Y5JMZKB/ Code of Conduct: http://python.org/psf/codeofconduct/