Home
last modified time | relevance | path

Searched refs:memo (Results 1 – 20 of 20) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Dcopy.py145 def deepcopy(x, memo=None, _nil=[]): argument
151 if memo is None:
152 memo = {}
155 y = memo.get(d, _nil)
163 y = copier(x, memo)
170 y = _deepcopy_atomic(x, memo)
174 y = copier(memo)
190 y = _reconstruct(x, rv, 1, memo)
192 memo[d] = y
193 _keep_alive(x, memo) # Make sure x lives at least as long as d
[all …]
Dweakref.py118 def __deepcopy__(self, memo): argument
124 new[deepcopy(key, memo)] = o
333 def __deepcopy__(self, memo): argument
339 new[o] = deepcopy(value, memo)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dcopy.py145 def deepcopy(x, memo=None, _nil=[]): argument
151 if memo is None:
152 memo = {}
155 y = memo.get(d, _nil)
163 y = copier(x, memo)
170 y = _deepcopy_atomic(x, memo)
174 y = copier(memo)
190 y = _reconstruct(x, rv, 1, memo)
192 memo[d] = y
193 _keep_alive(x, memo) # Make sure x lives at least as long as d
[all …]
Dpickle.py204 self.memo = {}
218 self.memo.clear()
244 assert id(obj) not in self.memo
245 memo_len = len(self.memo)
247 self.memo[id(obj)] = memo_len, obj
277 x = self.memo.get(id(obj))
545 memo = self.memo
550 if id(obj) in memo:
551 get = self.get(memo[id(obj)][0])
564 if id(obj) in memo:
[all …]
Dweakref.py92 def __deepcopy__(self, memo): argument
98 new[deepcopy(key, memo)] = o
274 def __deepcopy__(self, memo): argument
280 new[o] = deepcopy(value, memo)
Dpickletools.py1891 def dis(pickle, out=None, memo=None, indentlevel=4): argument
1931 if memo is None:
1932 memo = {} # crude emulation of unpicker memo
1981 if arg in memo:
1988 memo[arg] = stack[-1]
1991 if arg in memo:
1993 after = [memo[arg]] # for better stack emulation
Dsets.py153 def __deepcopy__(self, memo): argument
162 memo[id(self)] = result
166 data[deepcopy(elt, memo)] = value
Dxmlrpclib.py604 self.memo = {}
708 if i in self.memo:
710 self.memo[i] = None
716 del self.memo[i]
722 if i in self.memo:
724 self.memo[i] = None
738 del self.memo[i]
Dfractions.py602 def __deepcopy__(self, memo): argument
Ddecimal.py3609 def __deepcopy__(self, memo): argument
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
DcPickle.c336 PyObject *memo; member
368 PyObject *memo; member
752 if (!( mv = PyDict_GetItem(self->memo, id))) { in get()
821 if ((p = PyDict_Size(self->memo)) < 0) in put2()
846 if (PyDict_SetItem(self->memo, py_ob_id, t) < 0) in put2()
1555 if (PyDict_GetItem(self->memo, py_tuple_id)) { in save_tuple()
1581 if (PyDict_GetItem(self->memo, py_tuple_id)) { in save_tuple()
2641 if (PyDict_GetItem(self->memo, py_ob_id)) { in save()
2841 if (self->memo) in Pickle_clear_memo()
2842 PyDict_Clear(self->memo); in Pickle_clear_memo()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
DcPickle.c338 PyObject *memo; member
370 PyObject *memo; member
722 if (!( mv = PyDict_GetItem(self->memo, id))) { in get()
791 if ((p = PyDict_Size(self->memo)) < 0) in put2()
816 if (PyDict_SetItem(self->memo, py_ob_id, t) < 0) in put2()
1524 if (PyDict_GetItem(self->memo, py_tuple_id)) { in save_tuple()
1550 if (PyDict_GetItem(self->memo, py_tuple_id)) { in save_tuple()
2609 if (PyDict_GetItem(self->memo, py_ob_id)) { in save()
2809 if (self->memo) in Pickle_clear_memo()
2810 PyDict_Clear(self->memo); in Pickle_clear_memo()
[all …]
D_elementtree.c135 deepcopy(PyObject* object, PyObject* memo) in deepcopy() argument
155 Py_INCREF(memo); PyTuple_SET_ITEM(args, 1, (PyObject*) memo); in deepcopy()
638 PyObject* memo; in element_deepcopy() local
639 if (!PyArg_ParseTuple(args, "O:__deepcopy__", &memo)) in element_deepcopy()
642 tag = deepcopy(self->tag, memo); in element_deepcopy()
647 attrib = deepcopy(self->extra->attrib, memo); in element_deepcopy()
665 text = deepcopy(JOIN_OBJ(self->text), memo); in element_deepcopy()
671 tail = deepcopy(JOIN_OBJ(self->tail), memo); in element_deepcopy()
683 PyObject* child = deepcopy(self->extra->children[i], memo); in element_deepcopy()
700 i = PyDict_SetItem(memo, id, (PyObject*) element); in element_deepcopy()
D_sre.c1984 deepcopy(PyObject** object, PyObject* memo) in deepcopy() argument
1990 PyTuple_Pack(2, *object, memo) in deepcopy()
2533 pattern_deepcopy(PatternObject* self, PyObject* memo) in pattern_deepcopy() argument
2542 if (!deepcopy(&copy->groupindex, memo) || in pattern_deepcopy()
2543 !deepcopy(&copy->indexgroup, memo) || in pattern_deepcopy()
2544 !deepcopy(&copy->pattern, memo)) { in pattern_deepcopy()
3536 match_deepcopy(MatchObject* self, PyObject* memo) in match_deepcopy() argument
3545 if (!deepcopy((PyObject**) &copy->pattern, memo) || in match_deepcopy()
3546 !deepcopy(&copy->string, memo) || in match_deepcopy()
3547 !deepcopy(&copy->regs, memo)) { in match_deepcopy()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dpickletester.py1199 primed.memo = pickler.memo
1217 primed.memo = pickler.memo
1228 primed.memo = unpickler.memo
1231 primed.memo.clear()
Dtest_copy.py202 def __deepcopy__(self, memo=None): argument
313 memo = {}
315 y = copy.deepcopy(x, memo)
316 self.assertTrue(memo[id(x)] is x)
333 def __deepcopy__(self, memo): argument
334 return C(copy.deepcopy(self.foo, memo))
Dtest_descr.py306 def spamlist(l, memo=None): argument
349 def spamdict(d, memo=None): argument
Dtest_set.py246 def __deepcopy__(self, memo=None): argument
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Modules/
D_sre.c1984 deepcopy(PyObject** object, PyObject* memo) in deepcopy() argument
1990 PyTuple_Pack(2, *object, memo) in deepcopy()
2533 pattern_deepcopy(PatternObject* self, PyObject* memo) in pattern_deepcopy() argument
2542 if (!deepcopy(&copy->groupindex, memo) || in pattern_deepcopy()
2543 !deepcopy(&copy->indexgroup, memo) || in pattern_deepcopy()
2544 !deepcopy(&copy->pattern, memo)) { in pattern_deepcopy()
3536 match_deepcopy(MatchObject* self, PyObject* memo) in match_deepcopy() argument
3545 if (!deepcopy((PyObject**) &copy->pattern, memo) || in match_deepcopy()
3546 !deepcopy(&copy->string, memo) || in match_deepcopy()
3547 !deepcopy(&copy->regs, memo)) { in match_deepcopy()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/
D_sre.c2049 deepcopy(PyObject** object, PyObject* memo) in deepcopy() argument
2055 PyTuple_Pack(2, *object, memo) in deepcopy()
2612 pattern_deepcopy(PatternObject* self, PyObject* memo) in pattern_deepcopy() argument
2621 if (!deepcopy(&copy->groupindex, memo) || in pattern_deepcopy()
2622 !deepcopy(&copy->indexgroup, memo) || in pattern_deepcopy()
2623 !deepcopy(&copy->pattern, memo)) { in pattern_deepcopy()
3617 match_deepcopy(MatchObject* self, PyObject* memo) in match_deepcopy() argument
3626 if (!deepcopy((PyObject**) &copy->pattern, memo) || in match_deepcopy()
3627 !deepcopy(&copy->string, memo) || in match_deepcopy()
3628 !deepcopy(&copy->regs, memo)) { in match_deepcopy()