Showing content from http://mail.python.org/pipermail/python-dev/attachments/20150124/af6b7677/attachment-0001.html below:
<div dir="ltr">To finish PEP 448, I need to update the grammar for syntax such as<div><br></div><div>{**x for x in it}</div><div><br></div><div>and</div><div><br></div><div>{1:2, 3:4, **a}</div><div><br></div><div>It's been a long time since I've looked at grammars and I could really use the advice of an expert. I'm considering replacing:</div><div><div><br></div><div><div>dictorsetmaker: ( (test ':' test (comp_for | (',' test ':' test)* [','])) |</div><div>         (test (comp_for | (',' test)* [','])) )</div></div><div><br></div><div>with:</div><div><br></div><div>dictpopulator: test ':' test | '**' test</div><div>dictorsetmaker: ( (dictpopulator (comp_for | (',' dictpopulator)* [','])) |</div><div>          (test (comp_for | (',' test)* [','])) )</div></div><div><br></div><div>Am I headed in the right direction? Of course I will need to edit parsermodule.c and ast.c.</div><div><br></div><div>Best,</div><div><br></div><div>Neil</div></div>
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4