Created
October 21, 2010 20:18
-
-
Save felipecruz/639256 to your computer and use it in GitHub Desktop.
experimental aio.h implementation for python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyaio | |
import time | |
def aio_callback(buf): | |
print 'python callback %s' % buf | |
#file name, offset, lenght, callback function | |
pyaio.aio_read('/tmp/b.txt', 10, 20, aio_callback) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment