Home
last modified time | relevance | path

Searched refs:memo (Results 1 - 25 of 52) sorted by relevance

123

/third_party/python/Lib/
H A Dcopy.py128 def deepcopy(x, memo=None, _nil=[]):
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) # Mak
[all...]
H A Dpickle.py137 GET = b'g' # push item from memo on stack; index is string arg
140 LONG_BINGET = b'j' # push item from memo on stack; index is 4-byte arg
144 PUT = b'p' # store stack top in memo; index is string arg
188 MEMOIZE = b'\x94' # store top of the stack in memo
460 self.memo = {}
467 """Clears the pickler's "memo".
469 The memo is the data structure that remembers which objects the
474 self.memo.clear()
492 """Store an object in the memo."""
494 # The Pickler memo i
[all...]
H A Dpickletools.py9 dis(pickle, out=None, memo=None, indentlevel=4)
46 # The PM has two data areas, "the stack" and "the memo".
54 # The memo is simply an array of objects, or it can be implemented as a dict
55 # mapping little integers to objects. The memo serves as the PM's "long term
56 # memory", and the little integers indexing the memo are akin to variable
57 # names. Some opcodes pop a stack object into the memo at a given index,
58 # and others push a memo object at a given index onto the stack again.
135 # efficiently by index (EXT{1,2,4}). This is akin to the memo and GET, but
136 # the registry contents are predefined (there's nothing akin to the memo's
1796 doc="""Read an object from the memo an
[all...]
H A Dweakref.py182 def __deepcopy__(self, memo):
191 new[deepcopy(key, memo)] = o
441 def __deepcopy__(self, memo):
448 new[o] = deepcopy(value, memo)
/third_party/node/deps/npm/node_modules/cacache/lib/
H A Dget.js8 const memo = require('./memoization')
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
[all...]
/third_party/node/lib/internal/util/
H A Dcomparisons.js361 function setHasEqualElement(set, val1, strict, memo) {
364 if (innerDeepEqual(val1, val2, strict, memo)) {
407 function mapMightHaveLoosePrim(a, b, prim, item, memo) {
414 !innerDeepEqual(item, curB, false, memo)) {
417 return !a.has(altValue) && innerDeepEqual(item, curB, false, memo);
420 function setEquiv(a, b, strict, memo) {
458 if (!setHasEqualElement(set, val, strict, memo))
462 !setHasEqualElement(set, val, strict, memo)) {
472 function mapHasEqualEntry(set, map, key1, item1, strict, memo) {
477 if (innerDeepEqual(key1, key2, strict, memo)
[all...]
/third_party/ltp/tools/sparse/sparse-src/Documentation/sphinx/
H A Dcdoc.py65 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/
H A Dscanner.py26 memo = context.memo
38 _scan_once, object_hook, object_pairs_hook, memo)
69 memo.clear()
H A Ddecoder.py137 memo=None, _w=WHITESPACE.match, _ws=WHITESPACE_STR):
142 if memo is None:
143 memo = {}
144 memo_get = memo.setdefault
328 self.memo = {}
/third_party/python/Modules/
H A D_pickle.c631 PyMemoTable *memo; /* Memo table, keep track of the seen member
656 The fast mode disable the usage of memo,
672 /* The unpickler memo is just an array of PyObject *s. Using a dict
674 PyObject **memo; member
675 size_t memo_size; /* Capacity of the memo array */
676 size_t memo_len; /* Number of objects in the memo */
712 PicklerObject *pickler; /* Pickler whose memo table we're proxying. */
741 PyMemoTable *memo = PyMem_Malloc(sizeof(PyMemoTable)); in PyMemoTable_New() local
742 if (memo == NULL) { in PyMemoTable_New()
747 memo in PyMemoTable_New()
1573 PyObject **memo = PyMem_NEW(PyObject *, new_size); _Unpickler_NewMemo() local
1587 PyObject **memo = self->memo; _Unpickler_MemoCleanup() local
4683 PyMemoTable *memo = self->memo; Pickler_clear() local
4823 PyMemoTable *memo; _pickle_PicklerMemoProxy_copy_impl() local
[all...]
/third_party/node/deps/npm/node_modules/postcss-selector-parser/dist/selectors/
H A Droot.js22 var str = this.reduce(function (memo, selector) {
23 memo.push(String(selector));
24 return memo;
H A Dcontainer.js256 return this.reduce(function (memo, node, index) {
260 memo.push(current);
263 memo.push(current);
265 return memo;
271 _proto.reduce = function reduce(callback, memo) {
272 return this.nodes.reduce(callback, memo);
/third_party/python/Modules/clinic/
H A Dzlibmodule.c.h553 "__deepcopy__($self, memo, /)\n"
562 PyObject *memo);
571 PyObject *memo; in zlib_Compress___deepcopy__() local
577 memo = args[0]; in zlib_Compress___deepcopy__()
578 return_value = zlib_Compress___deepcopy___impl(self, cls, memo); in zlib_Compress___deepcopy__()
640 "__deepcopy__($self, memo, /)\n"
649 PyObject *memo);
658 PyObject *memo; in zlib_Decompress___deepcopy__() local
664 memo = args[0]; in zlib_Decompress___deepcopy__()
665 return_value = zlib_Decompress___deepcopy___impl(self, cls, memo); in zlib_Decompress___deepcopy__()
[all...]
H A D_elementtree.c.h68 "__deepcopy__($self, memo, /)\n"
76 _elementtree_Element___deepcopy___impl(ElementObject *self, PyObject *memo);
82 PyObject *memo; in _elementtree_Element___deepcopy__() local
88 memo = arg; in _elementtree_Element___deepcopy__()
89 return_value = _elementtree_Element___deepcopy___impl(self, memo); in _elementtree_Element___deepcopy__()
/third_party/python/Lib/test/
H A Dtest_copy.py300 def __deepcopy__(self, memo=None):
435 memo = {}
437 y = copy.deepcopy(x, memo)
438 self.assertIs(memo[id(memo)][0], x)
441 memo = {}
443 y = copy.deepcopy(x, memo)
446 self.assertEqual(len(memo), 2)
448 memo = {}
450 y = copy.deepcopy(x, memo)
[all...]
H A Dtest_pickle.py275 unpickler.memo = object
278 unpickler.memo = {-1: None}
279 unpickler.memo = {1: None}
308 MT_size + 8 * ME_size + # Minimal memo table size.
313 MT_size + 32 * ME_size + # Size of memo table required to
320 P = struct.calcsize('P') # Size of memo table entry.
329 32 * P + # Minimal memo table size.
343 # 128 is memo table size required to save references to 100 objects.
/third_party/python/Tools/peg_generator/pegen/
H A Dgrammar.py70 def __init__(self, name: str, type: Optional[str], rhs: Rhs, memo: Optional[object] = None):
74 self.memo = bool(memo)
148 self.memo: Optional[Tuple[Optional[str], str]] = None
276 self.memo: Optional[Tuple[Optional[str], str]] = None
H A Dgrammar_parser.py169 return Rule ( rulename [0] , rulename [1] , Rhs ( alts . alts + more_alts . alts ) , memo = opt )
186 return Rule ( rulename [0] , rulename [1] , more_alts , memo = opt )
199 return Rule ( rulename [0] , rulename [1] , alts , memo = opt )
223 # memoflag: '(' "memo" ')'
228 (literal_1 := self.expect("memo"))
232 return "memo"
650 SOFT_KEYWORDS = ('memo',)
/third_party/node/lib/internal/test_runner/reporter/
H A Dtap.js102 const memo = new SafeMap();
104 let value = memo.get(nesting);
107 memo.set(nesting, value);
/third_party/python/Lib/xmlrpc/
H A Dclient.py31 # 2001-10-01 fl Remove containers from memo cache when done with them
486 self.memo = {}
583 if i in self.memo:
585 self.memo[i] = None
591 del self.memo[i]
597 if i in self.memo:
599 self.memo[i] = None
610 del self.memo[i]
/third_party/python/Parser/
H A Dpegen.c54 m->next = p->tokens[mark]->memo; in _PyPegen_insert_memo()
55 p->tokens[mark]->memo = m; in _PyPegen_insert_memo()
63 for (Memo *m = p->tokens[mark]->memo; m != NULL; m = m->next) { in _PyPegen_update_memo()
307 for (Memo *m = t->memo; m != NULL; m = m->next) { in _PyPegen_is_memoized()
819 p->tokens[i]->memo = NULL; in reset_parser_state_for_error_pass()
/third_party/node/lib/internal/test_runner/
H A Dutils.js277 const memo = new SafeMap();
280 let value = memo.get(key);
283 memo.set(key, value);
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/
H A DTextTrieMapTest.java220 private void checkResult(String memo, Iterator itr, Object expected) { in checkResult() argument
226 errln("FAIL: Empty results: " + memo + ": Expected: " + expectedStr); in checkResult()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
H A DTextTrieMapTest.java217 private void checkResult(String memo, Iterator itr, Object expected) { in checkResult() argument
223 errln("FAIL: Empty results: " + memo + ": Expected: " + expectedStr); in checkResult()
/third_party/protobuf/python/google/protobuf/
H A Dmessage.py80 def __deepcopy__(self, memo=None):

Completed in 43 milliseconds

123