Problem with += (augmented assignment)

rzantow at my-deja.com rzantow at my-deja.com
Wed Dec 13 13:20:28 EST 2000


In article <9188ue$q9m$1 at nnrp1.deja.com>,
  mjjacob at my-deja.com wrote:
> > I tried this under Python 2.0 running on Win 2k:
> >
> > x = 0
> > while x <= 42:
> > 	x += 1
> >
> > Python always complains a Syntax Error: Invalid
> > Syntax on this:
> >
> >     x += 1
> >        ^
> > SyntaxError: invalid syntax

Are you sure you have 2.0 running? I clipped your code directly and it
ran fine (Python 2.0, Win2K).


Sent via Deja.com
http://www.deja.com/



More information about the Python-list mailing list