Re: [Python-ideas] Multi Statement Lambdas

2018-10-23 Thread Vladimir Filipović
Chris, I'm happy to work with you to hammer out comparisons of various solutions. But I can't take on the role of an advocate for "multi-statement lambdas". I don't even understand what precisely that covers, since we don't have uni-statement lambdas. _If that role would be needed for this discuss

Re: [Python-ideas] Multi Statement Lambdas

2018-10-23 Thread Chris Angelico
On Tue, Oct 23, 2018 at 8:04 PM Vladimir Filipović wrote: > > Chris, I'm happy to work with you to hammer out comparisons of various > solutions. > > But I can't take on the role of an advocate for "multi-statement lambdas". I > don't even understand what precisely that covers, since we don't ha

Re: [Python-ideas] Add closing and iteration to threading.Queue

2018-10-23 Thread MRAB
On 2018-10-23 06:13, Nathaniel Smith wrote: On Sun, Oct 21, 2018 at 8:31 PM, Guido van Rossum wrote: On Sun, Oct 21, 2018 at 6:08 PM Nathaniel Smith wrote: I'm not sure if this is an issue the way Queue is used in practice, but in general you have to be careful with this kind of circular flow

[Python-ideas] Python 3.7 dataclasses attribute order

2018-10-23 Thread Philip Martin
Hi, I just started to use the new dataclasses module. My initial use case boils down to somewhere between a namedtuple and a class where I want a record with a few methods. Mainly, I am trying to build a specific record from various sources, and then have the class handle validation and serializat

[Python-ideas] asymcio.TimerHandle.done()

2018-10-23 Thread reg . python
I'm rewriting an existing python program using a 3rd party async library to standard asyncio. That library allows one to check if a timer created with: timer = loop.call_later(delay, callback) is active, i.e. not cancelled and the scheduled callback not executed yet. I'm missing that functi