Suggestion for "syntax error": ++i, --i

Istvan Albert ialbert at mailblocks.com
Mon Dec 13 12:44:05 EST 2004


Petr Prikryl wrote:

> Summary: In my opinion, the C-like prefix
> increment and decrement operators (++i and --i)
> should be marked as "syntax error".

My guess is that the impact of it would be nil.

This is python, there are no prefix or postfix
operators. That is very easy to remember. Just because
one might get burned by it when learning python
it cannot become a recurring problem that needs fixing.

Istvan.





More information about the Python-list mailing list