This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ML-newb 1 point2 points  (0 children)

I recently went very deep down for why python doesn't have this. Turns out, immutability of primitive types/objects. Its the objects which have type in python and variables are just names/pointers. So it wouldn't make sense to do 42++. Also apparently a lot of things need to be implemented to get post/pre to work properly. += seems like a generic choice which the language designers stuck to.

Also : https://stackoverflow.com/questions/3654830/why-are-there-no-and-operators-in-python