diff --git a/18b-async-await/README.rst b/18b-async-await/README.rst index c74cf8e..0a5d0ca 100644 --- a/18b-async-await/README.rst +++ b/18b-async-await/README.rst @@ -4,8 +4,8 @@ From the book "Fluent Python" by Luciano Ramalho (O'Reilly, 2015) http://shop.oreilly.com/product/0636920032519.do ################################################################## -Note: this "18b" directory contains the examples of chapter 18 +NOTE: this "18b" directory contains the examples of chapter 18 rewritten using the new async/await syntax available in Python 3.5 -only, instead of the "yield-from" syntax which works since Python +ONLY, instead of the "yield-from" syntax which works since Python 3.3 (and will still work with Python 3.5). ################################################################## diff --git a/18b-async-await/spinner_await.py b/18b-async-await/spinner_await.py index dabeb46..f9a3dfc 100644 --- a/18b-async-await/spinner_await.py +++ b/18b-async-await/spinner_await.py @@ -1,10 +1,10 @@ -# spinner_asyncio.py +# spinner_await.py # credits: Example by Luciano Ramalho inspired by # Michele Simionato's multiprocessing example in the python-list: # https://mail.python.org/pipermail/python-list/2009-February/538048.html -# BEGIN SPINNER_ASYNCIO +# BEGIN SPINNER_AWAIT import asyncio import itertools import sys @@ -47,4 +47,4 @@ def main(): if __name__ == '__main__': main() -# END SPINNER_ASYNCIO +# END SPINNER_AWAIT