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 <CAH_1eM13z-8_Cjg2Q7BiEGYX0y77tTVUWDk=c5RqFE+2gC4Qbg@mail.gmail.com>
In-reply-to <1357433950.15.0.97433595896.issue16853@psf.upfronthosting.co.za>
Content
> 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.

        Returns:
        (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.

        Returns:
        number of currently registered file objects
        """
Files
File name Uploaded
selector-6.diff neologix, 2013-01-06.21:36:12
History
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