No, there is not. Integers are inmutable types, so you cannot modify them
in place, so you do:

i += 1

or

i = i+1

which creates a new integer and makes "i" reference it.

Hugo

> Hello
>        Is there a increment operator in python similar to c++
> like so       "SomeVariable++"
>
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>


_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to