On 7/12/20 2:38 AM, Federico Salerno wrote:
Was anything beside _ and ... proposed?


Yes, the PEP mentions using '?'.  It isn't the authors' first choice but it seems they're not dead-set against it either. Personally I prefer it to special-casing '_'.  It has no meaning in Python syntax yet, it would clearly not be an identifier (so no one would be surprised that it doesn't bind), and it's inspired by shell globbing.  '*' already means "match more than one thing" in several places, including PEP 622, and I'm guessing was also inspired by shell globbing, so there's some mild precedence to borrowing that syntax.


//arry/

_______________________________________________
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/XUF6ENRMNJ5K2DZ6UUXP27VEBEJX2F4F/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to