A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2009-September/092088.html below:

[Python-Dev] surprised to "++" and "--"

[Python-Dev] surprised to "++" and "--" [Python-Dev] surprised to "++" and "--"Facundo Batista facundobatista at gmail.com
Fri Sep 25 15:13:07 CEST 2009
2009/9/23 Wee Binn <weebinn at gmail.com>:

>     I know that there is no "++" or "--" operator in python, but if "var++"
> or something like that in my code(you know, most of C/C++ coders may like
> this),there is nothing wrong reported and program goes on just like
> expected!!
>     This is obscure, maybe a bug.

You can not write "var++":

>>> var = 5
>>> var++
   File "<ipython console>", line 1
     var++
          ^
SyntaxError: invalid syntax
>>>

-- 
.    Facundo

Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4