Message179231
> 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
""" |
|
Date |
User |
Action |
Args |
2013-01-06 21:36:14 | neologix | set | recipients:
+ neologix, gvanrossum, pitrou, giampaolo.rodola, christian.heimes, meador.inge, rosslagerwall, felipecruz |
2013-01-06 21:36:13 | neologix | link | issue16853 messages |
2013-01-06 21:36:13 | neologix | create | |
|