> Sorry if this is old news. I don't remember anybody reporting this, > but I don't follow c.l.py as closely as I used to. It's new to me. :-) > I've been writing a lot of C++ lately and my mind is stuck in limbo > somewhere between C++ and Python. I inadvertently wrote the following: > > x = 0 > while x < 10: > # do something > ++x > > Interestingly, this runs, it just never terminates! Looks like > somehow ++x is being parsed as "+0 + x". Shouldn't this construct > be flagged as a syntax error? > > This happens with both 2.1 and 2.2 IMO not worth it changing the language. Train yourself to write x++ instead. :-) --Guido van Rossum (home page: http://www.python.org/~guido/)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4