Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #9519
| References | <CAH+GN=3PDVnzEp7PJZk7y9BH=vbbsPs7UJoyRcJO3o2wCg-iag@mail.gmail.com> |
|---|---|
| Date | 2011-07-15 09:46 +0200 |
| Subject | Re: Python ++ Operator? |
| From | Björn Lindqvist <bjourne@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1054.1310716016.1164.python-list@python.org> (permalink) |
2011/7/15 Rafael Durán Castañeda <rafadurancastaneda@gmail.com>: > What's the meaning of using i++? Even, does exist ++ operator in python? No it doesn't, which is a good thing. Python differentiates between expressions and variable assignments. "i++" in C both assigns the value i + 1 to i AND evaluates to i. Pre and post-increments are almost always confusing unless they are used as the counter-variable inside for-loops. -- mvh/best regards Björn Lindqvist http://www.footballexperts.net/
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python ++ Operator? Björn Lindqvist <bjourne@gmail.com> - 2011-07-15 09:46 +0200
csiph-web