New submission from Alexandre JABORSKA:
Hi,
Nor asyncio.Event.wait() neither asyncio.Condition.wait() (or .wait_for())
has a timeout parameter, while threading.Event.wait() has one.
A timeout can be specified for the whole task using asyncio.wait_for() but
it's tricky.
I guess as
Alexandre JABORSKA added the comment:
I saw the "low level" part with the warning. But what I mean is that I found no
clear indication on how to change default loop to allow asyncio.subprocess
usage with Windows Python. I guessed :
asyncio.set_event_loop(ProactorEventLoop())
but I&
New submission from Alexandre JABORSKA:
The documentation example (getstatusoutput) does not work on windows because it
use the default loop (based on select). The whole asyncio.ProactorEventLoop
stuff is not really explained anywhere. Maybe a "How to use asyncio on Windows"
could
New submission from Alexandre JABORSKA:
asyncio.subprocess.DEVNULL documentation is the same as
asyncio.subprocess.STDOUT one and (I guess) inadequate (cut & paste error ?).
--
assignee: docs@python
components: Documentation
messages: 214338
nosy: ajaborsk, docs@python
priority: no
New submission from Alexandre JABORSKA:
The asyncio.subprocess.Process.wait() documentation mention "self" parameter
(typo ?) and don't tell it's a coroutine.
--
assignee: docs@python
components: Documentation
messages: 213753
nosy: ajaborsk, docs@python
prior
New submission from Alexandre JABORSKA:
While the asyncio.Condition.acquire(), release() an locked() methods work as
expected (on the underlying Lock), they are not mentioned in the documentation.
--
assignee: docs@python
components: Documentation
messages: 213117
nosy: ajaborsk, docs
Alexandre JABORSKA added the comment:
Well,
You're right, I'm confused, and I cannot use the http.client.parse_headers().
I made a workaround by reading all lines in a BytesIO and parse this one.
Anyway, if it not possible to use a file like object with the asyncio module,
Alexandre JABORSKA added the comment:
Hum...
It seems to me that the StreamReader() limit parameter is for buffer size while
the io.BytesIO.readline() "n" parameter is for maximum number of lines to be
retreived, I guess.
And since the StreamReader().readline() does not accept
New submission from Alexandre JABORSKA:
This prevent using StreamReader as a normal file object in some circumstances
(like http header parsing)
--
components: Library (Lib)
messages: 212624
nosy: ajaborsk
priority: normal
severity: normal
status: open
title