auto increment operator??
Michael Hudson
mwh21 at cam.ac.uk
Tue May 30 07:07:57 EDT 2000
Peter Schneider-Kamp <petersc at stud.ntnu.no> writes:
> 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
It's also here:
http://www-jcsu.jesus.cam.ac.uk/~mwh21/aug-patch.html
> i-would'nt-rely-on-it-getting-into-the-main-tree-though-ly y'rs
Well, *I* certainly hope not! I might have another bash at it after
exams (and after 1.6, most likely).
Cheers,
Michael
--
Or here's an even simpler indicator of how much C++ sucks: Print
out the C++ Public Review Document. Have someone hold it about
three feet above your head and then drop it. Thus you will be
enlightened. -- Thant Tessman
More information about the Python-list
mailing list