n++ < 10 syntax error??

Mark McEahern marklists at mceahern.com
Sun Jan 13 17:57:17 CET 2002


$ python
Python 2.2 (#1, Dec 31 2001, 15:21:18)
[GCC 2.95.3-5 (cygwin special)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> x = 1
>>> x++
  File "<string>", line 1
    x++
      ^
SyntaxError: invalid syntax
>>> x ++ 1
2
>>>




More information about the Python-list mailing list