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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/5YOUH4F56IKGUPRAKDO46BUVVXVOW7Z4/
Code of Conduct: http://python.org/psf/codeofconduct/
- [Python-ideas] PEP 472 - slices in keyword indices, d[x... Todd
- [Python-ideas] Re: PEP 472 - slices in keyword ind... Christopher Barker
- [Python-ideas] Re: PEP 472 - slices in keyword... Random832
- [Python-ideas] Re: PEP 472 - slices in key... Christopher Barker
- [Python-ideas] Re: PEP 472 - slices in... Chris Angelico
- [Python-ideas] Re: PEP 472 - slices in key... Alex Hall
- [Python-ideas] Re: PEP 472 - slices in... Paul Moore
- [Python-ideas] Re: PEP 472 - slices in... Steven D'Aprano
- [Python-ideas] Re: PEP 472 - slic... tcphone93
- [Python-ideas] Re: PEP 472 - slices in keyword... Todd
- [Python-ideas] Re: PEP 472 - slices in key... Jonathan Fine
- [Python-ideas] Re: PEP 472 - slices in... Todd
- [Python-ideas] Re: PEP 472 - slic... Jonathan Fine
- [Python-ideas] Re: PEP 472 - slices in keyword... David Mertz
- [Python-ideas] Re: PEP 472 - slices in keyword... Steven D'Aprano
- [Python-ideas] Re: PEP 472 - slices in keyword ind... Sebastian Kreft
- [Python-ideas] Re: PEP 472 - slices in keyword... Christopher Barker
