Re: [Python-ideas] [Python-Dev] What's the status of PEP 505: None-aware operators?

2017-11-29 Thread electronnn
I, too, think that this is too special a case for a dedicated syntax but so far I prefer: x None-or y The meaning is more clear to me. None-or is like regular or except that y is evaluated only if x is None. On Thu, Nov 30, 2017 at 2:35 AM, MRAB wrote: > On 2017-11-29 21:27, Greg Ewing wrote

Re: [Python-ideas] How assignment should work with generators?

2017-11-27 Thread electronnn
How about x, y ?= iterable with ?= being the lazy assignment operator? On Tue, Nov 28, 2017 at 9:45 AM, Steven D'Aprano wrote: > On Mon, Nov 27, 2017 at 06:31:28PM -0800, Mike Miller wrote: > > > Believe the question behind the idea was, how to grab a couple items and > > then *stop?* If the sy