Пример #1
0
 def pop(self, item):
     # FIXME
     if self:
         obj_list = sorted(self, key=lambda obj: obj.score)
         for i, it in enumerate(obj_list):
             if obj_list[i] == item:
                 return InstrumentedList.pop(self, i)
Пример #2
0
 def pop(self, item):
     # FIXME
     if self:
         obj_list = sorted(self, key=lambda obj: obj.score)
         for i, it in enumerate(obj_list):
             if obj_list[i] == item:
                 return InstrumentedList.pop(self, i)