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

2019-09-14 Thread Christopher Barker
> > > 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 range(to): > > yield i > > await asyncio.sleep(delay) > > >

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

2019-09-14 Thread Anders Hovmöller
I don't get it. You show one example then another unrelated example? That doesn't make anything clear to me at least. > On 14 Sep 2019, at 17:24, George Fischhof wrote: > > Hi All, > > While I was reading the documentation of asyn generators, > which shows the following example: > > async

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

2019-09-14 Thread Gustavo Carneiro
On Sat, 14 Sep 2019 at 16:26, George Fischhof wrote: > Hi All, > > 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 range(to): >

[Python-ideas] Simpler syntax for async generators

2019-09-14 Thread George Fischhof
Hi All, 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 range(to): yield i await asyncio.sleep(delay) It's came to my mind that

[Python-ideas] Re: Support for atomic types in Python

2019-09-14 Thread Dan Sommers
On 9/14/19 6:35 AM, Steven D'Aprano wrote: Am I the only one seeing two copies of each of Andrew Barnert's replies? No. ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org

[Python-ideas] Re: Support for atomic types in Python

2019-09-14 Thread Steven D'Aprano
Am I the only one seeing two copies of each of Andrew Barnert's replies? -- Steven ___ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org

[Python-ideas] Re: [Python-Dev] Feature Request: Python Pipes: Incluye sspipe module

2019-09-14 Thread Andrew Svetlov
I prefer keeping it as a separate library on PyPI. On Sat, Sep 14, 2019 at 12:26 AM Juan Telleria wrote: > > Could sspipe module be included as part of Python's Standard Library? > > https://sspipe.github.io/ > > https://github.com/sspipe/sspipe > > https://pypi.org/project/sspipe/ > > sspipe