> Those links were the first good faith comments I saw from OP.
What do you mean by that, exactly?
> looking through those examples in a cursory manner made me think about 75% of
> the time "why are they doing this silly approach?"
Give several examples.
--- Original Message ---
On Mon
On Mon, Mar 14, 2022 at 11:08:51PM -0400, David Mertz, Ph.D. wrote:
> On the other hand, looking through those examples in a cursory manner made
> me think about 75% of the time "why are they doing this silly approach?"
https://fs.blog/chestertons-fence/
Describing this as "silly" seems, well, s
On Tue, Mar 15, 2022 at 11:16:04AM +1100, Chris Angelico wrote:
> > How do we make a new list with a change other than the same slice and
> > concatenation we use with tuples?
> >
> > alist[:i] + [value] + alist[i+1:]
> >
> > I mean as an expression, of course we can split it over two statemen
On Tue, Mar 15, 2022 at 10:04:45AM +1100, Chris Angelico wrote:
> Since a namedtuple *is* supposed to
> be both a sequence and a record, the names are part of the record
> interface, and the sequence is still part of that. Also, the field
> names don't have to be valid identifiers (although they u
On Fri, Mar 11, 2022 at 06:26:52PM -0500, David Mertz, Ph.D. wrote:
> On Fri, Mar 11, 2022, 6:19 PM wfdc wrote:
>
> > > Likewise this which you wrote in another post: "Do you see why it's
> > useful to have immutability?"
> >
> > That's not insulting at all. It's a perfectly valid question to add
On Mon, Mar 14, 2022 at 04:57:09PM +, wfdc via Python-ideas wrote:
> > You're going to have to work harder than that to convince me. It's
> > not clear how many of those examples are unique, and most are
> > concise and idiomatic.
>
> Ridiculous goalpost-moving. I literally just gave you
On 2022-03-15 23:13, Steven D'Aprano wrote:
On Tue, Mar 15, 2022 at 11:16:04AM +1100, Chris Angelico wrote:
> How do we make a new list with a change other than the same slice and
> concatenation we use with tuples?
>
> alist[:i] + [value] + alist[i+1:]
>
> I mean as an expression, of cours