[New-bugs-announce] [issue9159] asyncore.file_wrapper does not register its fd to socket_map

kimhyunkang report at bugs.python.org
Mon Jul 5 04:26:53 CEST 2010


New submission from kimhyunkang <kimhyunkang at gmail.com>:

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()

----------
components: Library (Lib)
messages: 109287
nosy: kimhyunkang
priority: normal
severity: normal
status: open
title: asyncore.file_wrapper does not register its fd to socket_map
type: behavior
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9159>
_______________________________________


More information about the New-bugs-announce mailing list