This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: asyncore.file_wrapper does not register its fd to socket_map
Type: behavior Stage:
Components: Library (Lib) Versions: Python 2.6
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: kimhyunkang
Priority: normal Keywords:

Created on 2010-07-05 02:26 by kimhyunkang, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (1)
msg109287 - (view) Author: kimhyunkang (kimhyunkang) Date: 2010-07-05 02:26
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()
History
Date User Action Args
2022-04-11 14:57:03adminsetgithub: 53405
2010-07-05 02:40:30kimhyunkangsetstatus: open -> closed
2010-07-05 02:26:52kimhyunkangcreate