Links tagged “generators”
2 links, newest first.
pythonsheets.com
import asyncio import socket loop = asyncio.geteventloop() sock = socket.socket(socket.AFINET, socket.SOCKDGRAM, 0) sock.setsockopt(socket.SOLSOCKET, socket.SOREUSEADDR, 1) sock.setblocking(False) host = 'localhost' port = 3553 sock.bind((host, port)) def recvfrom(loop, sock, nbytes, fut=None, regis…
python.org
Abstract This PEP introduces the concept of generators to Python, as well as a new statement used in conjunction with them, the "yield" statement.
