Message179161
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. |
|
Date |
User |
Action |
Args |
2013-01-06 00:59:10 | gvanrossum | set | recipients:
+ gvanrossum, pitrou, giampaolo.rodola, christian.heimes, meador.inge, neologix, rosslagerwall, felipecruz |
2013-01-06 00:59:10 | gvanrossum | set | messageid: <1357433950.15.0.97433595896.issue16853@psf.upfronthosting.co.za> |
2013-01-06 00:59:10 | gvanrossum | link | issue16853 messages |
2013-01-06 00:59:09 | gvanrossum | create | |
|