import select f = open('/dev/null', 'r') r,w,e = select.select([f, f], [], []) print r,w,e