On 2008-04-22, Paul Hankin <[EMAIL PROTECTED]> wrote: > On Apr 22, 5:50 pm, Jérémy Wagner <[EMAIL PROTECTED]> wrote: >> Sure. Python is more readable than Perl, though I have found Python >> to have a weird behavior regarding this little issue : >> >> How can you explain that Python doesn't support the ++ opeator, >> whereas at the same time it does support the += operator ??? >> >> No python developer I know has been able to answer that. > > Because ++ is of limited use and has poor readability? > > 'x++' vs 'x += 1' saves 3 characters and is less readable.
In addition, the statement x = x++; has unspecified behaviour in C. That is, it is not specified whether the value of x after execution of the statement is the old value of x or one plus the old value of x. -- http://mail.python.org/mailman/listinfo/python-list