Steven D'Aprano added the comment: On Sat, Jul 11, 2015 at 03:23:53PM +0000, candide wrote: > > New submission from candide: > > Expressions such as > > a + not b > a * not b > + not b > - not b > > raise a SyntaxError, for instance : > > > >>> 0 + not 0 > File "<stdin>", line 1 > 0 + not 0 > ^ > SyntaxError: invalid syntax
That has been invalid syntax since Python 1.5, if not older. I don't think that it needs to be changed. [steve@ando ~]$ python1.5 Python 1.5.2 (#1, Aug 27 2012, 09:09:18) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> 0 + not 0 File "<stdin>", line 1 0 + not 0 ^ SyntaxError: invalid syntax ---------- nosy: +steven.daprano _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24612> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com