why no ++?

Terry Reedy tjreedy at home.com
Fri Aug 3 06:38:14 EDT 2001


"Mark Robinson" <m.1.robinson at herts.ac.uk> wrote in message
news:3B6A6B97.2060306 at herts.ac.uk...
> Just wondering. Can anyone tell me the rationale for leaving the
++/--
> operator out of python. It is perhaps my only irritation with
python, it

It was not left out. I was not included.  See FAQ for more comment

> is just that I hate to have to write:
>
> x = x + 1
>
> when my whole being just yearns to type
>
> x++

x += 1 # more general than ++

Terry J. Reedy






More information about the Python-list mailing list