documentation changes to 18b examples

This commit is contained in:
Luciano Ramalho 2015-07-14 01:07:17 -03:00
parent 9b7ee1c0b8
commit b7073cd021
2 changed files with 5 additions and 5 deletions

View File

@ -4,8 +4,8 @@ From the book "Fluent Python" by Luciano Ramalho (O'Reilly, 2015)
http://shop.oreilly.com/product/0636920032519.do 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 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). 3.3 (and will still work with Python 3.5).
################################################################## ##################################################################

View File

@ -1,10 +1,10 @@
# spinner_asyncio.py # spinner_await.py
# credits: Example by Luciano Ramalho inspired by # credits: Example by Luciano Ramalho inspired by
# Michele Simionato's multiprocessing example in the python-list: # Michele Simionato's multiprocessing example in the python-list:
# https://mail.python.org/pipermail/python-list/2009-February/538048.html # https://mail.python.org/pipermail/python-list/2009-February/538048.html
# BEGIN SPINNER_ASYNCIO # BEGIN SPINNER_AWAIT
import asyncio import asyncio
import itertools import itertools
import sys import sys
@ -47,4 +47,4 @@ def main():
if __name__ == '__main__': if __name__ == '__main__':
main() main()
# END SPINNER_ASYNCIO # END SPINNER_AWAIT