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.

In [*1*]: {'a':1}

Out[*1*]: {'a': 1}


In [*2*]: {('a':1)}

  File "<ipython-input-2-373a3153a222>", line 1

    {('a':1)}

         ^

SyntaxError: invalid syntax



-- 
Juancarlo *Añez*
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to