Message246608
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 |
|
Date |
User |
Action |
Args |
2015-07-11 16:23:08 | steven.daprano | set | recipients:
+ steven.daprano, benjamin.peterson, serhiy.storchaka, candide |
2015-07-11 16:23:08 | steven.daprano | link | issue24612 messages |
2015-07-11 16:23:07 | steven.daprano | create | |
|