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"
hjp
--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | [email protected] | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"
signature.asc
Description: PGP signature
-- https://mail.python.org/mailman3//lists/python-list.python.org
