n++ < 10 syntax error??
Andreas Jung
andreas at andreas-jung.com
Sun Jan 13 15:52:45 EST 2002
More information about the Python-list mailing list
Sun Jan 13 15:52:45 EST 2002
- Previous message (by thread): n++ < 10 syntax error??
- Next message (by thread): n++ < 10 syntax error??
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
There has been lots of discussions about this topic in past. They are not allowed. Please check the archives before starting a new thread about the pros and cons. - aj ----- Original Message ----- From: "Tal Linzen" <pachy at 012.net.il> To: "Paul Rubin" <phr-n2002a at nightsong.com> Cc: <python-list at python.org> Sent: Sunday, January 13, 2002 15:45 Subject: Re: n++ < 10 syntax error?? > > Python doesn't have the ++ autoincrement operator. + is a unary operator > > on a numeric arg, that does nothing. ++n is the same as n. > > Why is a construct like ++n or --n even allowed? I can't think of a context > where it's useful, > and it's evidently misleading for beginners with C background. > > Tal > > > -- > http://mail.python.org/mailman/listinfo/python-list >
- Previous message (by thread): n++ < 10 syntax error??
- Next message (by thread): n++ < 10 syntax error??
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list