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.

Author gvanrossum
Recipients christian.heimes, felipecruz, giampaolo.rodola, gvanrossum, meador.inge, neologix, pitrou, rosslagerwall
Date 2013-01-06.00:59:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1357433950.15.0.97433595896.issue16853@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-01-06 00:59:10gvanrossumsetrecipients: + gvanrossum, pitrou, giampaolo.rodola, christian.heimes, meador.inge, neologix, rosslagerwall, felipecruz
2013-01-06 00:59:10gvanrossumsetmessageid: <1357433950.15.0.97433595896.issue16853@psf.upfronthosting.co.za>
2013-01-06 00:59:10gvanrossumlinkissue16853 messages
2013-01-06 00:59:09gvanrossumcreate