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 pitrou
Recipients gvanrossum, neologix, pitrou, vstinner
Date 2013-10-06.15:01:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1381071669.2488.7.camel@fsol>
In-reply-to <1381070902.41.0.865638927541.issue19172@psf.upfronthosting.co.za>
Content
FWIW, I think the "ideal" solution would be for keys() (*) to return a
read-only Mapping implementation, allowing for file object lookup (using
__getitem__) as well as iteration on SelectorKeys (using __iter__) and
fast emptiness checking (using __len__).

(to implement Mapping, you can subclass Mapping and implement
__getitem__, __len__ and __iter__)

(*) or a better name
History
Date User Action Args
2013-10-06 15:01:11pitrousetrecipients: + pitrou, gvanrossum, vstinner, neologix
2013-10-06 15:01:11pitroulinkissue19172 messages
2013-10-06 15:01:11pitroucreate