Re: [Python-ideas] PEP 532: A circuit breaking operator and protocol

2016-11-11 Thread Adam Bartoš
Just a small suggestion: wouldn't it be better to use adjectives instead of verbs for proposed builtin names and their variants? existing(foo) else bar non_None(foo) else bar instead of exists(foo) else bar is_not_None(foo) else bar Regards, Adam Bartoš

Re: [Python-ideas] Add a method to get the subset of a dictionnary.

2016-11-11 Thread Ares Ou
> > On 10/12/2016 5:52 PM, Terry Reedy wrote: > > Test code before posting. The above is a set comprehension creating a > set of tupes. > I should have followed my own advice. The above is a SyntaxError until > 'k,v' is wrapped in parens, '(k,v)'. On 10/12/2016 12:06 PM, Enguerrand Pelletier wro