Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #9525
| References | <CAH+GN=3PDVnzEp7PJZk7y9BH=vbbsPs7UJoyRcJO3o2wCg-iag@mail.gmail.com> <CALG+76dizm12CbpOAzoC7U8x6N0OH3gfBR1OjgeLtDcgJ9y50w@mail.gmail.com> |
|---|---|
| Date | 2011-07-15 18:06 +1000 |
| Subject | Re: Python ++ Operator? |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1057.1310717193.1164.python-list@python.org> (permalink) |
2011/7/15 Björn Lindqvist <bjourne@gmail.com>: > Pre and post-increments are > almost always confusing unless they are used as the counter-variable > inside for-loops. I agree that they're often confusing (i+++++j) but there are several places where they're handy. array[count++]=value; or the more direct pointer management: *ptr++=value; However, Python doesn't work as close to the bare metal, so it doesn't have such constructs. 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 18:06 +1000 Re: Python ++ Operator? Chris Torek <nospam@torek.net> - 2011-07-19 19:08 +0000
csiph-web