Guido van Rossum added the comment:

I am trying to use this module in Tulip instead of its pollster implementation, 
and am running into a problem.  Tulip defines separate 
add_reader()/add_writer() methods, which call to the pollster's 
register_reader()/register_writer(), respectively.  The translation of this to 
the selector's API is somewhat complex; I would have to keep track of whether I 
already have a reader or writer registered, and then decide whether to call 
register() or modify().  If you don't want to change the API back to separate 
register_*() methods for readers and writers, perhaps you can add a method that 
tells me, for a given fileobj, whether it is registered, and with which poll 
flags (SELECT_IN/OUT/both) and the user data?

Also, I need a method that gives me the number of registered FDs.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16853>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to