Message199080
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 |
|
Date |
User |
Action |
Args |
2013-10-06 15:01:11 | pitrou | set | recipients:
+ pitrou, gvanrossum, vstinner, neologix |
2013-10-06 15:01:11 | pitrou | link | issue19172 messages |
2013-10-06 15:01:11 | pitrou | create | |
|