Possible Duplicate:
Why there are no ++ and — operators in Python?
This question may seem strange, but I'm wondering why is there no such operation in Python.
I know, x += 1
is almost as simple as x++
, but still. There is such operation in most languages I'm familiar with (C, C++, Java, C#, JavaScript, PHP), but there isn't in Python.
Maybe it has something to do with the phylosophy of this language?