[Python-ideas] Re: Simpler syntax for async generators

2019-09-15 Thread George Fischhof
Christopher Barker ezt írta (időpont: 2019. szept. 14., Szo, 21:58): > > While I was reading the documentation of asyn generators, >> > which shows the following example: >> > >> > async def ticker(delay, to): >> > """Yield numbers from 0 to *to* every *delay* seconds.""" >> > for i in ra

[Python-ideas] Feature Request: Forward-Pipe in Operator in Python

2019-09-15 Thread Juan Telleria
Dear Python-Ideas Mailing List, The R Programming Language has for function chaining: https://magrittr.tidyverse.org/ And the most similar package we have in Python till now is: https://sspipe.github.io/ Anyone would be willing to work on this feature, making it more mature, stable and straigh

[Python-ideas] Re: Simpler syntax for async generators

2019-09-15 Thread Greg Ewing
George Fischhof wrote: With this syntax the use / programmer do not have to write async def, nor await, because after the yield the await should come automatically. I don't see how you can eliminate the await in your example generator. Can you show us how it would look in its entirety under you

[Python-ideas] Re: Simpler syntax for async generators

2019-09-15 Thread Steven D'Aprano
On Mon, Sep 16, 2019 at 11:36:45AM +1200, Greg Ewing wrote: > George Fischhof wrote: > >With this syntax the use / programmer do not have to write async def, > >nor await, because after the yield the await should come automatically. > > I don't see how you can eliminate the await in your example