Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #9521
| References | <CAH+GN=3PDVnzEp7PJZk7y9BH=vbbsPs7UJoyRcJO3o2wCg-iag@mail.gmail.com> |
|---|---|
| Date | 2011-07-15 17:55 +1000 |
| Subject | Re: Python ++ Operator? |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1055.1310716536.1164.python-list@python.org> (permalink) |
2011/7/15 Rafael Durán Castañeda <rafadurancastaneda@gmail.com>: > Hello all, > What's the meaning of using i++? Even, does exist ++ operator in python? ++i is legal Python but fairly useless. It's the unary + operator, applied twice. It doesn't increment the variable. Now, i+=1 IS valid Python, and WILL do what a C programmer expects it to. ChrisA
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Python ++ Operator? Chris Angelico <rosuav@gmail.com> - 2011-07-15 17:55 +1000 Re: Python ++ Operator? Chris Torek <nospam@torek.net> - 2011-07-15 20:48 +0000
csiph-web