Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #100038
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Tony van der Hoff <tony@vanderhoff.org> |
| Newsgroups | comp.lang.python |
| Subject | Re: increment/decrement operators |
| Date | Sat, 5 Dec 2015 14:14:43 +0000 |
| Lines | 26 |
| Message-ID | <dcg9qjF4scfU1@mid.individual.net> (permalink) |
| References | <dcg4apF3gq3U1@mid.individual.net> <n3umug$f0$1@news.albasani.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net jJ/nbmsWw4yFH8KC77ozbw6lmXFgaYb7Jz1qAMHd2UnrOvWcM9 |
| Cancel-Lock | sha1:uH2TdA5b/8JFpK5Av5SO/50R164= |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.4.0 |
| In-Reply-To | <n3umug$f0$1@news.albasani.net> |
| Xref | csiph.com comp.lang.python:100038 |
Show key headers only | View raw
On 05/12/15 12:56, Robin Koch wrote: > Am 05.12.2015 um 13:40 schrieb Tony van der Hoff: >> Hi, >> >> I'm a relative newbie to python, and this NG, but it's certainly growing >> on me. >> >> One thing I'm missing is the increment/decrement operator from C, ie >> x++, and its ilk. Likewise x += y. >> >> is there any way of doing this in Python? > > Quick answer: > > x += y works. (Well, it should.) > > x++ doesn't. > > Long answer: > > I'm sure someone more experienced will come up with one shortly. :-) > > Until then I found this: > http://stackoverflow.com/a/1485854 > Thanks for the link
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
increment/decrement operators Tony van der Hoff <tony@vanderhoff.org> - 2015-12-05 12:40 +0000
Re: increment/decrement operators Robin Koch <robin.koch@t-online.de> - 2015-12-05 13:56 +0100
Re: increment/decrement operators Tony van der Hoff <tony@vanderhoff.org> - 2015-12-05 14:14 +0000
Re: increment/decrement operators "D'Arcy J.M. Cain" <darcy@VybeNetworks.com> - 2015-12-05 09:41 -0500
Re: increment/decrement operators Terry Reedy <tjreedy@udel.edu> - 2015-12-05 10:43 -0500
Re: increment/decrement operators BartC <bc@freeuk.com> - 2015-12-05 17:18 +0000
Re: increment/decrement operators Ian Kelly <ian.g.kelly@gmail.com> - 2015-12-07 17:24 -0700
csiph-web