Bitten by my C/Java experience

Gregory Ewing greg.ewing at canterbury.ac.nz
Wed May 6 07:19:58 EDT 2015


BartC wrote:

> So why pretend that ++ and -- don't exist?

Probably because Python would gain very little from
having them.

Main uses of ++ in C are things like integer for
loops:

    for (i = 0; i < 10; i++) {...

and stepping through arrays:

    a[i++] = b[j++];

Python code usually operates at a higher level than
that.

-- 
Greg



More information about the Python-list mailing list