auto increment operator??

Peter Schneider-Kamp petersc at stud.ntnu.no
Tue May 30 03:29:07 EDT 2000


Bob van der Poel wrote:
> 
> seem to be missing some things. First off, why are there no operators
> equivalent to C's ++, --, +=, etc.? Very useful, and readable. Writing
> things like: 'var = var+1' is getting old real fast.

Michael Hudson wrote a patch for the +=, -=, *=, /= and some other
of these operators. ++ and -- on the other hand IMHO don't fit Python.

If you're lucky to catch the StarShip in midair (something that seems
to be more and more rare), a patch can be found at:

http://starship.python.net/crew/mwh/aug-patch.html

i-would'nt-rely-on-it-getting-into-the-main-tree-though-ly y'rs
Peter
--
Peter Schneider-Kamp          ++47-7388-7331
Herman Krags veg 51-11        mailto:peter at schneider-kamp.de
N-7050 Trondheim              http://schneider-kamp.de




More information about the Python-list mailing list