[issue22112] '_UnixSelectorEventLoop' object has no attribute 'create_task'

2014-08-10 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue22112] '_UnixSelectorEventLoop' object has no attribute 'create_task'

2014-08-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset d0ea92701b1e by Victor Stinner in branch '3.4': Issue #22112, asyncio doc: replace loop.create_task(coro) with http://hg.python.org/cpython/rev/d0ea92701b1e New changeset 18a311479e8b by Victor Stinner in branch 'default': (Merge 3.4) Issue #22112,

[issue22112] '_UnixSelectorEventLoop' object has no attribute 'create_task'

2014-08-02 Thread Guido van Rossum
Guido van Rossum added the comment: Looks good! On Sat, Aug 2, 2014 at 4:19 AM, STINNER Victor wrote: > > STINNER Victor added the comment: > > Here is a a patch which replaces loop.create_task(coro) with > asyncio.async(coro), mention that asyncio.async() can be used to scheduler > a coroutin

[issue22112] '_UnixSelectorEventLoop' object has no attribute 'create_task'

2014-08-02 Thread STINNER Victor
STINNER Victor added the comment: Here is a a patch which replaces loop.create_task(coro) with asyncio.async(coro), mention that asyncio.async() can be used to scheduler a coroutine, and make it clear that create_task() is only available in Python 3.4.2 and later. Does it look better? If it'

[issue22112] '_UnixSelectorEventLoop' object has no attribute 'create_task'

2014-07-31 Thread Guido van Rossum
Guido van Rossum added the comment: asyncio has an explicit exemption from the general rule that bugfixes should not add new features. This is because of the "provisional" status of the PEP. We'll stop doing this once 3.5 is out. I don't know what's up with the online docs. On Thu, Jul 31, 2014

[issue22112] '_UnixSelectorEventLoop' object has no attribute 'create_task'

2014-07-31 Thread Daniel Greenfeld
Daniel Greenfeld added the comment: First, if there is documentation that says, "3.4.1", doesn't it make sense that the documentation should only be for 3.4.1? Which means that this create_task documentation should be reverted in the 3.4.1 documentation to match the 3.4.1 specification. Secon

[issue22112] '_UnixSelectorEventLoop' object has no attribute 'create_task'

2014-07-31 Thread STINNER Victor
STINNER Victor added the comment: > This has been fixed in 3.4.2, but shows up in the 3.4.1 documentation. Well, I didn't want to change Python 3.4.1 documentation, but it looks like https://docs.python.org/3.4/ is updated after each commit into the 3.4 branch. For example, new asyncio functio

[issue22112] '_UnixSelectorEventLoop' object has no attribute 'create_task'

2014-07-30 Thread Guido van Rossum
Guido van Rossum added the comment: I honestly don't know; ask Benjamin. :-) Personally, I'd say that ship has sailed. -- ___ Python tracker ___

[issue22112] '_UnixSelectorEventLoop' object has no attribute 'create_task'

2014-07-30 Thread Daniel Greenfeld
Daniel Greenfeld added the comment: This has been fixed in 3.4.2, but shows up in the 3.4.1 documentation. How do I fix the 3.4.1 documentation so this doesn't show up? -- Added file: http://bugs.python.org/file36173/Screen Shot 2014-07-30 at 8.13.12 PM.png ___

[issue22112] '_UnixSelectorEventLoop' object has no attribute 'create_task'

2014-07-30 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks for reporting a doc bug! The code should use asyncio.async() instead of loop.create_task(). -- ___ Python tracker ___

[issue22112] '_UnixSelectorEventLoop' object has no attribute 'create_task'

2014-07-30 Thread Daniel Greenfeld
New submission from Daniel Greenfeld: Problem The documentation on asyncio provides an example of a parallel execution of tasks. The code is at: https://docs.python.org/3/library/asyncio-task.html#example-parallel-execution-of-tasks ``` python import asyncio @asyncio.coroutine def