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

Doug Holton insert at spam.here
Mon Dec 20 19:05:29 EST 2004


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


Let me rephrase my answer.
This is a good sugestion for Python 3.0, a.k.a. Python 3000:
http://www.python.org/cgi-bin/moinmoin/Python3.0

In the future you may be able to to this:

     variable++

However, Python 3.0 is likely years away.  If you want to know how to 
run this code today, ask Fredrik Lundh.



More information about the Python-list mailing list