On 20.04.2020 13:00, Steven D'Aprano wrote: > On Mon, Apr 20, 2020 at 10:03:50AM +0200, M.-A. Lemburg wrote: >> Guys, is it really worth saving a few hits on the auto-complete key >> by adding even more mysterious twists to the existing Python function >> call syntax ? >> >> The current version already strikes me as way too complex. >> It's by far the most complex piece of grammar we have in Python: > > (I think you pasted the typedarglist rules twice.)
No, there are two lists: typedargslist and varargslist. The latter is only used in lambda functions, which don't support type annotations (yet another twist to remember when it comes to function calls). > Now that Python is moving to a PEG parser, could it be simplified? Perhaps, but that's not really the point I wanted to make. If it's difficult to spell the correct syntax in a parser grammar, then humans will have trouble understanding it as well, esp. people new to Python. -- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Experts (#1, Apr 20 2020) >>> Python Projects, Coaching and Support ... https://www.egenix.com/ >>> Python Product Development ... https://consulting.egenix.com/ ________________________________________________________________________ ::: We implement business ideas - efficiently in both time and costs ::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611 https://www.egenix.com/company/contact/ https://www.malemburg.com/ _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/2CERKNIBL4THVDHHUW6IRSP6OHOBJQRZ/ Code of Conduct: http://python.org/psf/codeofconduct/