★ wanayoo — archive 1999 http://www.python.org/search/hypermail/python-1994q3/0572.htmlNouvelle recherche | Portail wanayoo
Python Archives (1994q3): Re: if ( 10 < x < 100 )

Re: if ( 10 < x < 100 )

Robin Friedrich (friedric@rsoc.rockwell.com)
15 Jul 1994 21:55:59 GMT

Ray Price writes:
>Did I see somewhere in the Python docs that the following construct is valid?
>
>if ( 10 < x < 100)
> y++

Actually it would be
if ( 10 < x < 100 ):
y = y + 1 # Python has no y++ syntax

Yes I had a good chuckle at that thread in comp.lang.perl. Tell them for me
that they might consider learning a modern language.
(Not that we in the python group are stuck up or anything ;-)

--------------------------------------------------------------
| Robin K. Friedrich | friedric@rsoc.rockwell.com |
| Rockwell Space Operations | (713) 282-2974 |
| Houston, TX | |
--------------------------------------------------------------