/external/python/cpython3/Lib/ |
D | copy.py | 128 def deepcopy(x, memo=None, _nil=[]): argument 134 if memo is None: 135 memo = {} 138 y = memo.get(d, _nil) 146 y = copier(x, memo) 149 y = _deepcopy_atomic(x, memo) 153 y = copier(memo) 172 y = _reconstruct(x, memo, *rv) 176 memo[d] = y 177 _keep_alive(x, memo) # Make sure x lives at least as long as d [all …]
|
D | pickle.py | 460 self.memo = {} 474 self.memo.clear() 508 assert id(obj) not in self.memo 509 idx = len(self.memo) 511 self.memo[id(obj)] = idx, obj 545 x = self.memo.get(id(obj)) 699 if id(obj) in self.memo: 700 write(POP + self.get(self.memo[id(obj)][0])) 883 memo = self.memo 888 if id(obj) in memo: [all …]
|
D | pickletools.py | 2395 def dis(pickle, out=None, memo=None, indentlevel=4, annotate=0): argument 2441 if memo is None: 2442 memo = {} # crude emulation of unpickler memo 2492 memo_idx = len(memo) 2497 if memo_idx in memo: 2504 memo[memo_idx] = stack[-1] 2506 if arg in memo: 2508 after = [memo[arg]] # for better stack emulation 2886 memo = {} if args.memo else None variable 2890 dis(f, args.output, memo, args.indentlevel, annotate)
|
/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
|
/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/Tools/peg_generator/pegen/ |
D | metagrammar.gram | 53 Rule(rulename[0], rulename[1], Rhs(alts.alts + more_alts.alts), memo=opt) } 55 Rule(rulename[0], rulename[1], more_alts, memo=opt) } 56 | rulename memoflag? ":" alts NEWLINE { Rule(rulename[0], rulename[1], alts, memo=opt) } 65 | '(' 'memo' ')' { "memo" }
|
D | grammar.py | 71 def __init__(self, name: str, type: Optional[str], rhs: Rhs, memo: Optional[object] = None): 75 self.memo = bool(memo) 190 self.memo: Optional[Tuple[Optional[str], str]] = None 354 self.memo: Optional[Tuple[Optional[str], str]] = None
|
/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/cpython3/Modules/ |
D | _pickle.c | 619 PyMemoTable *memo; /* Memo table, keep track of the seen member 662 PyObject **memo; member 729 PyMemoTable *memo = PyMem_MALLOC(sizeof(PyMemoTable)); in PyMemoTable_New() local 730 if (memo == NULL) { in PyMemoTable_New() 735 memo->mt_used = 0; in PyMemoTable_New() 736 memo->mt_allocated = MT_MINSIZE; in PyMemoTable_New() 737 memo->mt_mask = MT_MINSIZE - 1; in PyMemoTable_New() 738 memo->mt_table = PyMem_MALLOC(MT_MINSIZE * sizeof(PyMemoEntry)); in PyMemoTable_New() 739 if (memo->mt_table == NULL) { in PyMemoTable_New() 740 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]) 56 * keeping a ``memo`` dictionary of objects already copied during the current 86 argument, the ``memo`` dictionary. If the :meth:`__deepcopy__` implementation needs 88 with the component as first argument and the memo dictionary as second argument.
|
/external/llvm-project/mlir/lib/Analysis/ |
D | AffineStructures.cpp | 1172 SmallVectorImpl<AffineExpr> *memo) { in detectAsMod() argument 1230 if (!(*memo)[dividendPos]) in detectAsMod() 1233 (*memo)[pos] = (*memo)[dividendPos] % divisor * dividendSign; in detectAsMod() 1237 (*memo)[pos] = (*memo)[dividendPos] * dividendSign; in detectAsMod() 1239 (*memo)[pos] = (*memo)[dividendPos] % divisor * dividendSign; in detectAsMod() 1241 if (seenQuotient == 1 && !(*memo)[quotientPos]) in detectAsMod() 1243 (*memo)[quotientPos] = in detectAsMod() 1244 (*memo)[dividendPos].floorDiv(divisor) * quotientSign; in detectAsMod() 1585 SmallVector<AffineExpr, 8> memo(getNumIds()); in getSliceBounds() local 1589 memo[i] = getAffineDimExpr(i, context); in getSliceBounds() [all …]
|
/external/cpuinfo/scripts/ |
D | android-x86-mock.sh | 6 adb push build/android/x86/memo-pad-7-test /data/local/tmp/memo-pad-7-test
|
/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 | 357 def __deepcopy__(self, memo): argument 358 return type(self)(copy.deepcopy(self._storage, memo)) 498 def __deepcopy__(self, memo): argument 499 copied = super(ListWrapper, self).__deepcopy__(memo) 711 def __deepcopy__(self, memo): argument 712 return type(self)(copy.deepcopy(self._storage, memo)) 811 def __deepcopy__(self, memo): argument 812 copied = _DictWrapper(copy.deepcopy(self.__wrapped__, memo)) 1027 def __deepcopy__(self, memo): argument 1028 return _TupleWrapper(copy.deepcopy(self.__wrapped__, 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/tensorflow/tensorflow/python/tpu/ |
D | feature_column_v2.py | 449 def __deepcopy__(self, memo): argument 451 *(copy.deepcopy(a, memo) for a in self.__getnewargs__())) 644 def __deepcopy__(self, memo): argument 646 *(copy.deepcopy(a, memo) for a in self.__getnewargs__())) 920 def __deepcopy__(self, memo): argument 922 *(copy.deepcopy(a, memo) for a in self.__getnewargs__()), 1048 def __deepcopy__(self, memo): argument 1050 *(copy.deepcopy(a, memo) for a in self.__getnewargs__()),
|
/external/python/cpython3/Grammar/ |
D | python.gram | 60 small_stmt[stmt_ty] (memo): 299 block[asdl_seq*] (memo): 309 star_expression[expr_ty] (memo): 329 expression[expr_ty] (memo): 383 disjunction[expr_ty] (memo): 389 conjunction[expr_ty] (memo): 395 inversion[expr_ty] (memo): 450 factor[expr_ty] (memo): 458 await_primary[expr_ty] (memo): 492 strings[expr_ty] (memo): a=STRING+ { _PyPegen_concatenate_strings(p, a) } [all …]
|