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

Class REX_seven

Lib/test/picklecommon.py:171–182  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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
173 the reduce protocol.
174 """
175 def __init__(self, table=None):
176 self.table = table if table is not None else {}
177 def __eq__(self, other):
178 return type(self) is type(other) and self.table == other.table
179 def __setitem__(self, key, value):
180 self.table[key] = value
181 def __reduce__(self):
182 return type(self), (), None, None, iter(self.table.items())
183
184class REX_state(object):
185 """This class is used to check the 3th argument (state) of

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…