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 neologix
Recipients christian.heimes, felipecruz, giampaolo.rodola, gvanrossum, meador.inge, neologix, pitrou, rosslagerwall
Date 2013-01-06.21:36:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
> 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.

Does that look OK?

    def get_info(self, fileobj):
        """Return information about a registered file object.

        (events, data) associated to this file object

        Raises KeyError if the file object is not registered.

    def registered_count(self):
        """Return the number of registered file objects.

        number of currently registered file objects
File name Uploaded
selector-6.diff neologix, 2013-01-06.21:36:12
Date User Action Args
2013-01-06 21:36:14neologixsetrecipients: + neologix, gvanrossum, pitrou, giampaolo.rodola, christian.heimes, meador.inge, rosslagerwall, felipecruz
2013-01-06 21:36:13neologixlinkissue16853 messages
2013-01-06 21:36:13neologixcreate