On Sun, Nov 11, 2018 at 04:34:16PM +0000, Juancarlo Añez wrote: > On Sun, Nov 11, 2018 at 6:00 AM Chris Angelico <ros...@gmail.com> wrote: > > > Be careful of this last one. If you omit the step, it looks like this: > > > > {start:stop} > > > > which is a dictionary display. > > > > The parenthesis could always be required for this new syntax.
Under the proposed syntax {(start:stop)} would be a set with a single item, a slice object. If slice objects were hashable, that would be legal. The OP's proposal is for {start:stop} to be equivalent to set(range(start, stop)) so they will be very different things. -- Steve _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/