Compound Assignment Operators ( +=, *=, etc...)
Fredrik Lundh
fredrik at pythonware.com
Mon Aug 16 03:57:12 EDT 1999
Andrew Clover <esuzm at primrose.csv.warwick.ac.uk> wrote:
> I'd like a syntax like:
>
> x.+(1)
>
> With the idea that x is an object (of type int) with a '+' method that
> adds stuff to it. It'd be nicer without the brackets though.
mutable integers? now that's a really cool feature! (known
from Fortran and Tcl, among others. I'm pretty sure Perl
has them too ;-).
</F>
More information about the Python-list
mailing list