summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-01-05 20:08:54 +0100
committerVictor Stinner <victor.stinner@gmail.com>2014-01-05 20:08:54 +0100
commit12e4cebce748073caeb383d0b4398b78e24ba891 (patch)
treeb51c9a5f8c8163ebca5af8ee123152618f018923
parent33041cad9321ac307baf7fea657df049a41b8535 (diff)
downloadtrollius-12e4cebce748073caeb383d0b4398b78e24ba891.tar.gz
Clarify synchronous executor in README
-rw-r--r--README15
1 files changed, 6 insertions, 9 deletions
diff --git a/README b/README
index 51f31a2..9055439 100644
--- a/README
+++ b/README
@@ -16,10 +16,6 @@ The futures project is needed on Python 2 to get a backport of
concurrent.futures.
https://pypi.python.org/pypi/futures
-If the concurrent.futures module is missing, a synchronous executor is used as
-a fallback. It blocks until the function returns, and so DNS resolution is
-blocking.
-
Unit tests require the mock module:
https://pypi.python.org/pypi/mock
@@ -27,12 +23,13 @@ https://pypi.python.org/pypi/mock
Differences between Trollius and Tulip
======================================
-* Python 2 has no keyword-only parameters
-* Trollius coroutines use yield whereas Tulip coroutines must use yield-from
-* Trollius coroutines must use "raise Return(value)", whereas Tulip simply
- uses "return value" thanks to Python 3.3 improvments
+* Trollius coroutines use "yield" and "raise Return(value)",
+ whereas Tulip coroutines use "yield from" and "return".
* If the concurrent.futures module is missing, BaseEventLoop.run_in_executor()
- raises NotImplementedError and asyncio.wrap_future() is not available
+ uses a synchronous executor instead of a pool of threads. It blocks until the
+ function returns, and so DNS resolutions are blocking.
+* Python 2 does not support keyword-only parameters.
+
Usage
=====