Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman Newsgroups: comp.os.linux.misc,alt.folklore.computers,comp.lang.python Subject: Re: Python Date: 18 Dec 2025 06:54:30 GMT Lines: 16 Message-ID: References: <10hvsd2$11k4$2@gal.iecc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net KVfxSmYViwh4CDyHxzrlywvgI1PeINbMRX3js3a8/yhEzxfuVf Cancel-Lock: sha1:Hflzd2mc1gOnn5mRTyU4eeVezmk= sha256:q6SIpa7YNWB/WLvkFObCVRGSVi3Vri4Tjdb/aLJwiJY= User-Agent: Pan/0.162 (Pokrosvk) Xref: csiph.com comp.os.linux.misc:79418 alt.folklore.computers:232666 comp.lang.python:197614 On Wed, 17 Dec 2025 23:02:24 -0500, c186282 wrote: > Oh, I usually write "i=i+2". It's a bit more clear and becomes the > same code anyway. += is more a 'C' thing. And Python, C#, JavaScript, C++, ... https://peps.python.org/pep-0008/ "assignment (+=, -= etc.), comparisons (==, <, >, !=, <=, >=, in, not in, is, is not), Booleans (and, or, not)." There's some benighted language that does not have += etc. Maybe R. I looked at that briefly before deciding anything I could do in R I could do in Python without learning new weirdness.