MCPcopy Index your code
hub / github.com/python/cpython / REX_six

Class REX_six

Lib/test/picklecommon.py:158–169  ·  view source on GitHub ↗

This class is used to check the 4th argument (list iterator) of the reduce protocol.

Source from the content-addressed store, hash-verified

156 return object.__reduce__(self)
157
158class 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
171class REX_seven(object):
172 """This class is used to check the 5th argument (dict iterator) of

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…