/third_party/python/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])) 884 memo = self.memo 889 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)
|
/third_party/node/deps/npm/node_modules/cacache/lib/ |
D | get.js | 8 const memo = require('./memoization') constant 13 const memoized = memo.get(cache, key, opts) 29 memo.put(cache, entry, data, opts) 43 const memoized = memo.get.byDigest(cache, key, opts) 50 memo.put.byDigest(cache, key, res, opts) 69 const memoized = memo.get(cache, key, opts) 99 memoStream.on('collect', data => memo.put(cache, entry, data, opts)) 113 const memoized = memo.get.byDigest(cache, integrity, opts) 125 memoStream.on('collect', data => memo.put.byDigest( 139 const memoized = memo.get(cache, key, opts)
|
D | rm.js | 6 const memo = require('./memoization') constant 14 memo.clearMemoized() 21 memo.clearMemoized() 28 memo.clearMemoized()
|
D | put.js | 4 const memo = require('./memoization') constant 23 memo.put(cache, entry, data, opts) 71 memo.put(cache, entry, memoData, opts)
|
/third_party/node/lib/internal/util/ |
D | comparisons.js | 361 function setHasEqualElement(set, val1, strict, memo) { argument 364 if (innerDeepEqual(val1, val2, strict, memo)) { 407 function mapMightHaveLoosePrim(a, b, prim, item, memo) { argument 414 !innerDeepEqual(item, curB, false, memo)) { 417 return !a.has(altValue) && innerDeepEqual(item, curB, false, memo); 420 function setEquiv(a, b, strict, memo) { argument 458 if (!setHasEqualElement(set, val, strict, memo)) 462 !setHasEqualElement(set, val, strict, memo)) { 472 function mapHasEqualEntry(set, map, key1, item1, strict, memo) { argument 477 if (innerDeepEqual(key1, key2, strict, memo) && [all …]
|
/third_party/node/deps/npm/node_modules/bin-links/lib/ |
D | get-node-modules.js | 7 const memo = new Map() constant 9 if (memo.has(path)) { 10 return memo.get(path) 17 memo.set(path, nm)
|
/third_party/ltp/tools/sparse/sparse-src/Documentation/sphinx/ |
D | cdoc.py | 65 def memo(self): member in Lines 76 return self.memo() 117 (n, l) = lines.memo() 297 memo = self.state.memo 298 save = memo.title_styles, memo.section_level 304 memo.title_styles, memo.section_level = save
|
/third_party/python/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 = {}
|
/third_party/python/Tools/peg_generator/pegen/ |
D | metagrammar.gram | 54 Rule(rulename[0], rulename[1], Rhs(alts.alts + more_alts.alts), memo=opt) } 56 Rule(rulename[0], rulename[1], more_alts, memo=opt) } 57 | rulename memoflag? ":" alts NEWLINE { Rule(rulename[0], rulename[1], alts, memo=opt) } 66 | '(' '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 372 self.memo: Optional[Tuple[Optional[str], str]] = None
|
/third_party/node/deps/npm/node_modules/postcss-selector-parser/dist/selectors/ |
D | root.js | 22 var str = this.reduce(function (memo, selector) { argument 23 memo.push(String(selector)); 24 return memo;
|
D | container.js | 256 return this.reduce(function (memo, node, index) { argument 260 memo.push(current); 263 memo.push(current); 265 return memo; 271 _proto.reduce = function reduce(callback, memo) { argument 272 return this.nodes.reduce(callback, memo);
|
/third_party/python/Modules/ |
D | _pickle.c | 620 PyMemoTable *memo; /* Memo table, keep track of the seen member 663 PyObject **memo; member 730 PyMemoTable *memo = PyMem_Malloc(sizeof(PyMemoTable)); in PyMemoTable_New() local 731 if (memo == NULL) { in PyMemoTable_New() 736 memo->mt_used = 0; in PyMemoTable_New() 737 memo->mt_allocated = MT_MINSIZE; in PyMemoTable_New() 738 memo->mt_mask = MT_MINSIZE - 1; in PyMemoTable_New() 739 memo->mt_table = PyMem_Malloc(MT_MINSIZE * sizeof(PyMemoEntry)); in PyMemoTable_New() 740 if (memo->mt_table == NULL) { in PyMemoTable_New() 741 PyMem_Free(memo); in PyMemoTable_New() [all …]
|
/third_party/python/Doc/library/ |
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. 89 The memo dictionary should be treated as an opaque object.
|
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
|
/third_party/python/Modules/clinic/ |
D | zlibmodule.c.h | 522 PyObject *memo); 530 PyObject *memo; in zlib_Compress___deepcopy__() local 533 &memo)) { in zlib_Compress___deepcopy__() 536 return_value = zlib_Compress___deepcopy___impl(self, cls, memo); in zlib_Compress___deepcopy__() 621 PyObject *memo); 629 PyObject *memo; in zlib_Decompress___deepcopy__() local 632 &memo)) { in zlib_Decompress___deepcopy__() 635 return_value = zlib_Decompress___deepcopy___impl(self, cls, memo); in zlib_Decompress___deepcopy__()
|
/third_party/node/deps/npm/node_modules/@npmcli/arborist/lib/arborist/ |
D | isolated-reifier.js | 12 const memo = new Map() constant 15 if (memo.has(key)) { 16 return memo.get(key) 19 memo.set(key, result) 353 const memo = new Set() 358 if (memo.has(key)) { 361 memo.add(key)
|
/third_party/python/Lib/test/ |
D | test_copy.py | 297 def __deepcopy__(self, memo=None): argument 429 memo = {} 431 y = copy.deepcopy(x, memo) 432 self.assertIs(memo[id(memo)][0], x) 435 memo = {} 437 y = copy.deepcopy(x, memo) 440 self.assertEqual(len(memo), 2) 442 memo = {} 444 y = copy.deepcopy(x, memo) 447 self.assertEqual(len(memo), 2) [all …]
|
/third_party/node/deps/npm/node_modules/@npmcli/metavuln-calculator/lib/ |
D | advisory.js | 283 const memo = this[_specVulnMemo] 284 if (memo.has(spec)) { 285 return memo.get(spec) 289 memo.set(spec, res)
|
/third_party/node/lib/internal/test_runner/reporter/ |
D | tap.js | 96 const memo = new SafeMap(); constant 98 let value = memo.get(nesting); 101 memo.set(nesting, value);
|
/third_party/node/deps/npm/node_modules/cli-table3/src/ |
D | utils.js | 11 return split.reduce(function (memo, s) { argument 12 return stringWidth(s) > memo ? stringWidth(s) : memo;
|
/third_party/node/lib/internal/test_runner/ |
D | utils.js | 275 const memo = new SafeMap(); constant 278 let value = memo.get(key); 281 memo.set(key, value);
|