Initial checkin of asyncio package (== Tulip, == PEP 3156).

This commit is contained in:
Guido van Rossum 2013-10-17 13:40:50 -07:00
parent 5b37f97ea5
commit 27b7c7ebf1
44 changed files with 16016 additions and 0 deletions

View file

@ -0,0 +1,9 @@
import os
if __name__ == '__main__':
while True:
buf = os.read(0, 1024)
try:
os.write(1, b'OUT:'+buf)
except OSError as ex:
os.write(2, b'ERR:' + ex.__class__.__name__.encode('ascii'))