[issue20950] asyncio.docs : asyncio.subprocess.Process.wait() method typo

2014-03-16 Thread Alexandre JABORSKA

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
priority: normal
severity: normal
status: open
title: asyncio.docs : asyncio.subprocess.Process.wait() method typo
type: enhancement
versions: Python 3.4

___
Python tracker 
<http://bugs.python.org/issue20950>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21005] asyncio.docs : asyncio.subprocess.DEVNULL doc inadequate

2014-03-21 Thread Alexandre JABORSKA

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: normal
severity: normal
status: open
title: asyncio.docs : asyncio.subprocess.DEVNULL doc inadequate
versions: Python 3.4

___
Python tracker 
<http://bugs.python.org/issue21005>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21006] asyncio.docs : create_subprocess_exec example does not work on windows

2014-03-21 Thread Alexandre JABORSKA

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 be useful.

--
assignee: docs@python
components: Documentation
messages: 214341
nosy: ajaborsk, docs@python
priority: normal
severity: normal
status: open
title: asyncio.docs : create_subprocess_exec example does not work on windows
versions: Python 3.4

___
Python tracker 
<http://bugs.python.org/issue21006>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21006] asyncio.docs : create_subprocess_exec example does not work on windows

2014-03-21 Thread Alexandre JABORSKA

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'm not sure (it works for me).

--

___
Python tracker 
<http://bugs.python.org/issue21006>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21962] No timeout for asyncio.Event.wait() or asyncio.Condition.wait() ?

2014-07-11 Thread Alexandre JABORSKA

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 asyncio implementation could allow a timeout parameter (but I've not 
looked at the code yet). Maybe is this a feature ?

--
components: asyncio
messages: 222791
nosy: ajaborsk, gvanrossum, haypo, yselivanov
priority: normal
severity: normal
status: open
title: No timeout for asyncio.Event.wait() or asyncio.Condition.wait() ?
type: enhancement
versions: Python 3.4

___
Python tracker 
<http://bugs.python.org/issue21962>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20841] asyncio.StreamReader.readline() lack lines limit optional parameter

2014-03-03 Thread Alexandre JABORSKA

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: asyncio.StreamReader.readline() lack lines limit optional parameter
type: behavior
versions: Python 3.4

___
Python tracker 
<http://bugs.python.org/issue20841>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20841] asyncio.StreamReader.readline() lack lines limit optional parameter

2014-03-03 Thread Alexandre JABORSKA

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 parameter, it still 
cannot be used in other modules (like http.client.parse_headers()).

--

___
Python tracker 
<http://bugs.python.org/issue20841>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20841] asyncio.StreamReader.readline() lack lines limit optional parameter

2014-03-03 Thread Alexandre JABORSKA

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, 
which is absolutly fantastic (I installed the 3.4RC just for it), a lot a 
modules will need a rewrite/adaptation to be useable. I guess every module that 
use any kind of IO is the list : logging, servers, parsers, etc.

  Thanks !

Alexandre

--

___
Python tracker 
<http://bugs.python.org/issue20841>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20889] asyncio.docs : asyncio.Condition acquire/release/locked method undocumented

2014-03-10 Thread Alexandre JABORSKA

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@python
priority: normal
severity: normal
status: open
title: asyncio.docs : asyncio.Condition acquire/release/locked method 
undocumented
type: enhancement
versions: Python 3.4

___
Python tracker 
<http://bugs.python.org/issue20889>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com