Issue 9159: asyncore.file_wrapper does not register its fd to socket_map (original) (raw)
In current stable python 2.6, the test code below does nothing, which is inconsistent with other default dispatcher's behavior.
========
import asyncore
class test_reader(asyncore.file_wrapper) def writable(self): return False
def handle_read(self): print self.recv(4096)
f = open('test.dat', 'r') reader = test_reader(f.fileno())
asyncore.loop()