why no ++?

Mark Robinson m.1.robinson at herts.ac.uk
Fri Aug 3 05:15:03 EDT 2001


Just wondering. Can anyone tell me the rationale for leaving the ++/-- 
operator out of python. It is perhaps my only irritation with python, it
is just that I hate to have to write:

x = x + 1

when my whole being just yearns to type

x++

I guess it is perhaps not as clear, but I am not aware of it being a
common cause of errors in C++ or java (doesn't mean it isn't, just that
I am not aware of them). I also miss +=, *=, %=, /=, would it really 
make the code that much harder to read/maintain?

blobby




More information about the Python-list mailing list