[Python-checkins] cpython: asyncio doc: rewrite the callback hello world to use call_soon() instead of a

victor.stinner python-checkins at python.org
Tue Dec 10 02:51:23 CET 2013


http://hg.python.org/cpython/rev/9eb247762a91
changeset: 87865:9eb247762a91
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue Dec 10 02:47:22 2013 +0100
summary:
 asyncio doc: rewrite the callback hello world to use call_soon() instead of a
direct call.
files:
 Doc/library/asyncio-eventloop.rst | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst
--- a/Doc/library/asyncio-eventloop.rst
+++ b/Doc/library/asyncio-eventloop.rst
@@ -348,7 +348,7 @@
 loop.call_later(2, print_and_repeat, loop)
 
 loop = asyncio.get_event_loop()
- print_and_repeat(loop)
+ loop.call_soon(print_and_repeat, loop)
 loop.run_forever()
 
 .. seealso::
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /