This class is used to check the 4th argument (list iterator) of the reduce protocol.
| 156 | return object.__reduce__(self) |
| 157 | |
| 158 | class REX_six(object): |
| 159 | """This class is used to check the 4th argument (list iterator) of |
| 160 | the reduce protocol. |
| 161 | """ |
| 162 | def __init__(self, items=None): |
| 163 | self.items = items if items is not None else [] |
| 164 | def __eq__(self, other): |
| 165 | return type(self) is type(other) and self.items == other.items |
| 166 | def append(self, item): |
| 167 | self.items.append(item) |
| 168 | def __reduce__(self): |
| 169 | return type(self), (), None, iter(self.items), None |
| 170 | |
| 171 | class REX_seven(object): |
| 172 | """This class is used to check the 5th argument (dict iterator) of |
no outgoing calls
searching dependent graphs…