[Python-Dev] Status of PEP 3145 (original) (raw)
[Python-Dev] Status of PEP 3145 - Asynchronous I/O for subprocess.popen
R. David Murray rdmurray at bitdance.com
Fri Mar 28 16:08:02 CET 2014
- Previous message: [Python-Dev] Status of PEP 3145 - Asynchronous I/O for subprocess.popen
- Next message: [Python-Dev] PEP 461: Adding % formatting to bytes and bytearray -- Final, Take 3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, 28 Mar 2014 10:45:01 -0400, Tres Seaver <tseaver at palladion.com> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 03/27/2014 09:16 PM, Josiah Carlson wrote: > But here's the thing: I can build enough using asyncio in 30-40 lines > of Python to offer something like the above API. The problem is that > it really has no natural home. It uses asyncio, so makes no sense to > put in subprocess. It doesn't fit the typical asyncio behavior, so > doesn't make sense to put in asyncio. The required functionality isn't > big enough to warrant a submodule anywhere. Heck, it's even way too > small to toss into an external PyPI module. Seems perfect for the Cheesehop to me.
Indeed. I heard a rumor[*] that there's at least one package in the cheeseshop that consists of a one-liner.
On the other hand, we have multiprocessing examples in the docs that are longer than that, so it sounds like a great asyncio example to me, especially given that Victor says we don't have enough examples yet.
--David
[*] https://pypi.python.org/pypi/first It's not actually a one liner, but you could write it as one, and the actual code isn't much heavier :)
- Previous message: [Python-Dev] Status of PEP 3145 - Asynchronous I/O for subprocess.popen
- Next message: [Python-Dev] PEP 461: Adding % formatting to bytes and bytearray -- Final, Take 3
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]