[Python-ideas] Re: Auto assignment of attributes

2022-04-29 Thread Christopher Barker
On Thu, Apr 28, 2022 at 10:26 PM Ethan Furman wrote: > > One thing you can say about dataclasses is that they provide a way to > handle all parameters, mutable and immutable. > > Really? I did not know that. Interesting. > > Definitely an issue of dataclasses being special, though, and not >

[Python-ideas] Re: Delete dictionary entry if key exists using -= operator via __isub__()

2022-04-29 Thread Chris Angelico
On Fri, 29 Apr 2022 at 18:39, Greg Ewing wrote: > > On 29/04/22 6:02 am, Zach Victor wrote: > > For me, pop() says "give me something." > > In English the word "pop" doesn't necessarily imply getting > something wanted, or even getting anything at all. Think > popping a champagne cork, or popping

[Python-ideas] Re: Delete dictionary entry if key exists using -= operator via __isub__()

2022-04-29 Thread Greg Ewing
On 29/04/22 6:02 am, Zach Victor wrote: For me, pop() says "give me something." In English the word "pop" doesn't necessarily imply getting something wanted, or even getting anything at all. Think popping a champagne cork, or popping a balloon. -- Greg