My suggestion to solve this would be to use a similar rule to the walrus 
operator; only allow slice literals within either `()` brackets or `[]` square 
brackets; thus `{a: b: c: d, x: y}` becomes illegal and would need to be 
`{(a:b): (c:d), x: y}`
_______________________________________________
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/5YOUH4F56IKGUPRAKDO46BUVVXVOW7Z4/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to