On Mon, 22 Dec 2025 at 03:19, Peter J. Holzer <[email protected]> wrote: > > On 2025-12-21 23:59:48 +1100, Chris Angelico via Python-list wrote: > > On Sun, 21 Dec 2025 at 23:31, Peter J. Holzer <[email protected]> wrote: > > > There is the concept of "pythonic" Code (just like there is a concept of > > > idiomatic code in (almost) any language), but if you ask 100 randomly > > > chosen Python programmers whether the use of += is pythonic, I doubt > > > that more than a handful would say no. > > > > > > > I would expect the opposite. It's in the language for a reason. Is it > > somehow more Pythonic to repeat yourself? > > I think we agree, but my double negative may have been confusing. > > My expectation is: > > at most 5% say "no, using += is not pythonic" > at least 95% say "yes, using += is pythonic" >
Yeah. I'm not going to try to predict specific percentages, but I believe a significant majority of Python programmers would say that yes, += IS Pythonic. ChrisA -- https://mail.python.org/mailman3//lists/python-list.python.org
