/external/python/cpython3/Lib/ |
D | copy.py | 132 def deepcopy(x, memo=None, _nil=[]): argument 138 if memo is None: 139 memo = {} 142 y = memo.get(d, _nil) 150 y = copier(x, memo) 157 y = _deepcopy_atomic(x, memo) 161 y = copier(memo) 180 y = _reconstruct(x, memo, *rv) 184 memo[d] = y 185 _keep_alive(x, memo) # Make sure x lives at least as long as d [all …]
|
D | pickle.py | 410 self.memo = {} 424 self.memo.clear() 458 assert id(obj) not in self.memo 459 idx = len(self.memo) 461 self.memo[id(obj)] = idx, obj 495 x = self.memo.get(id(obj)) 645 if id(obj) in self.memo: 646 write(POP + self.get(self.memo[id(obj)][0])) 768 memo = self.memo 773 if id(obj) in memo: [all …]
|
D | pickletools.py | 2317 def dis(pickle, out=None, memo=None, indentlevel=4, annotate=0): argument 2363 if memo is None: 2364 memo = {} # crude emulation of unpickler memo 2414 memo_idx = len(memo) 2419 if memo_idx in memo: 2426 memo[memo_idx] = stack[-1] 2428 if arg in memo: 2430 after = [memo[arg]] # for better stack emulation 2808 memo = {} if args.memo else None variable 2812 dis(f, args.output, memo, args.indentlevel, annotate)
|
D | weakref.py | 183 def __deepcopy__(self, memo): argument 192 new[deepcopy(key, memo)] = o 422 def __deepcopy__(self, memo): argument 429 new[o] = deepcopy(value, memo)
|
/external/python/cpython2/Lib/ |
D | copy.py | 145 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 …]
|
D | pickle.py | 204 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)) 408 if id(obj) in self.memo: 409 write(POP + self.get(self.memo[id(obj)][0])) 551 memo = self.memo 556 if id(obj) in memo: [all …]
|
D | pickletools.py | 1891 def dis(pickle, out=None, memo=None, indentlevel=4): argument 1931 if memo is None: 1932 memo = {} # crude emulation of unpickler memo 1981 if arg in memo: 1988 memo[arg] = stack[-1] 1991 if arg in memo: 1993 after = [memo[arg]] # for better stack emulation
|
D | weakref.py | 137 def __deepcopy__(self, memo): argument 145 new[deepcopy(key, memo)] = o 381 def __deepcopy__(self, memo): argument 387 new[o] = deepcopy(value, memo)
|
D | sets.py | 153 def __deepcopy__(self, memo): argument 162 memo[id(self)] = result 166 data[deepcopy(elt, memo)] = value
|
D | xmlrpclib.py | 610 self.memo = {} 713 if i in self.memo: 715 self.memo[i] = None 721 del self.memo[i] 727 if i in self.memo: 729 self.memo[i] = None 744 del self.memo[i]
|
/external/python/cpython3/Lib/json/ |
D | scanner.py | 26 memo = context.memo 38 _scan_once, object_hook, object_pairs_hook, memo) 69 memo.clear()
|
D | decoder.py | 137 memo=None, _w=WHITESPACE.match, _ws=WHITESPACE_STR): argument 142 if memo is None: 143 memo = {} 144 memo_get = memo.setdefault 328 self.memo = {}
|
/external/python/cpython3/Modules/ |
D | _pickle.c | 607 PyMemoTable *memo; /* Memo table, keep track of the seen member 646 PyObject **memo; member 711 PyMemoTable *memo = PyMem_MALLOC(sizeof(PyMemoTable)); in PyMemoTable_New() local 712 if (memo == NULL) { in PyMemoTable_New() 717 memo->mt_used = 0; in PyMemoTable_New() 718 memo->mt_allocated = MT_MINSIZE; in PyMemoTable_New() 719 memo->mt_mask = MT_MINSIZE - 1; in PyMemoTable_New() 720 memo->mt_table = PyMem_MALLOC(MT_MINSIZE * sizeof(PyMemoEntry)); in PyMemoTable_New() 721 if (memo->mt_table == NULL) { in PyMemoTable_New() 722 PyMem_FREE(memo); in PyMemoTable_New() [all …]
|
/external/python/cpython3/Doc/library/ |
D | pickletools.rst | 66 .. cmdoption:: -m, --memo 68 When multiple objects are disassembled, preserve memo between 82 .. function:: dis(pickle, out=None, memo=None, indentlevel=4, annotate=0) 86 string or a file-like object. *memo* can be a Python dictionary 87 that will be used as the pickle's memo; it can be used to perform
|
D | copy.rst | 25 .. function:: deepcopy(x[, memo]) 55 * keeping a ``memo`` dictionary of objects already copied during the current 85 argument, the ``memo`` dictionary. If the :meth:`__deepcopy__` implementation needs 87 with the component as first argument and the memo dictionary as second argument.
|
/external/libxml2/result/ |
D | dtd1.sax | 3 SAX.internalSubset(MEMO, -//SGMLSOURCE//DTD MEMO//EN, http://www.sgmlsource.com/dtds/memo.dtd) 4 SAX.externalSubset(MEMO, -//SGMLSOURCE//DTD MEMO//EN, http://www.sgmlsource.com/dtds/memo.dtd)
|
D | dtd1.sax2 | 3 SAX.internalSubset(MEMO, -//SGMLSOURCE//DTD MEMO//EN, http://www.sgmlsource.com/dtds/memo.dtd) 4 SAX.externalSubset(MEMO, -//SGMLSOURCE//DTD MEMO//EN, http://www.sgmlsource.com/dtds/memo.dtd)
|
/external/libxml2/result/noent/ |
D | dtd1.sax2 | 3 SAX.internalSubset(MEMO, -//SGMLSOURCE//DTD MEMO//EN, http://www.sgmlsource.com/dtds/memo.dtd) 4 SAX.externalSubset(MEMO, -//SGMLSOURCE//DTD MEMO//EN, http://www.sgmlsource.com/dtds/memo.dtd)
|
/external/python/cpython2/Doc/library/ |
D | pickletools.rst | 23 .. function:: dis(pickle, out=None, memo=None, indentlevel=4) 27 *memo* can be a Python dictionary that will be used as the pickle's memo; it can
|
D | copy.rst | 51 * keeping a "memo" dictionary of objects already copied during the current 84 argument, the memo dictionary. If the :meth:`__deepcopy__` implementation needs 86 with the component as first argument and the memo dictionary as second argument.
|
/external/tensorflow/tensorflow/python/training/tracking/ |
D | data_structures.py | 286 def __deepcopy__(self, memo): argument 287 return type(self)(copy.deepcopy(self._storage, memo)) 396 def __deepcopy__(self, memo): argument 397 copied = super(_ListWrapper, self).__deepcopy__(memo) 573 def __deepcopy__(self, memo): argument 574 return type(self)(copy.deepcopy(self._storage, memo)) 668 def __deepcopy__(self, memo): argument 669 copied = super(_DictWrapper, self).__deepcopy__(memo)
|
/external/python/cpython3/Lib/test/ |
D | test_copy.py | 296 def __deepcopy__(self, memo=None): argument 428 memo = {} 430 y = copy.deepcopy(x, memo) 431 self.assertIs(memo[id(memo)][0], x) 434 memo = {} 436 y = copy.deepcopy(x, memo) 439 self.assertEqual(len(memo), 2) 441 memo = {} 443 y = copy.deepcopy(x, memo) 446 self.assertEqual(len(memo), 2) [all …]
|
/external/python/cpython2/Modules/ |
D | cPickle.c | 336 PyObject *memo; member 368 PyObject *memo; member 750 if (!( mv = PyDict_GetItem(self->memo, id))) { in get() 824 if ((p = PyDict_Size(self->memo)) < 0) in put2() 849 if (PyDict_SetItem(self->memo, py_ob_id, t) < 0) in put2() 1569 if (PyDict_GetItem(self->memo, py_tuple_id)) { in save_tuple() 1595 if (PyDict_GetItem(self->memo, py_tuple_id)) { in save_tuple() 2557 if (PyDict_GetItem(self->memo, py_ob_id)) { in save_reduce() 2676 if (PyDict_GetItem(self->memo, py_ob_id)) { in save() 2876 if (self->memo) in Pickle_clear_memo() [all …]
|
/external/python/cpython3/Lib/xmlrpc/ |
D | client.py | 474 self.memo = {} 571 if i in self.memo: 573 self.memo[i] = None 579 del self.memo[i] 585 if i in self.memo: 587 self.memo[i] = None 598 del self.memo[i]
|
/external/markdown/markdown/ |
D | odict.py | 25 def __deepcopy__(self, memo): argument 27 return self.__class__([(key, deepcopy(value, memo))
|