Home
last modified time | relevance | path

Searched refs:marshal (Results 1 – 25 of 92) sorted by relevance

1234

/third_party/python/Lib/test/
Dtest_marshal.py5 import marshal
18 new = marshal.loads(marshal.dumps(sample, *extra))
22 marshal.dump(sample, f, *extra)
24 new = marshal.load(f)
45 got = marshal.loads(s)
52 got = marshal.loads(b'I\xfe\xdc\xba\x98\x76\x54\x32\x10')
54 got = marshal.loads(b'I\x01\x23\x45\x67\x89\xab\xcd\xef')
56 got = marshal.loads(b'I\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f')
58 got = marshal.loads(b'I\xf7\xe6\xd5\xc4\xb3\xa2\x91\x80')
76 s = marshal.dumps(f, 2)
[all …]
Daudit-tests.py111 import marshal
113 payload = marshal.dumps(o)
116 assertEqual(o, marshal.loads(marshal.dumps(o)))
120 marshal.dump(o, f)
122 assertEqual(o, marshal.load(f))
127 assertSequenceEqual(actual, [(o, marshal.version)] * 2)
Dsortperf.py11 import marshal
31 marshal.dump(result, fp)
43 result = marshal.load(fp)
Dtest_bool.py265 import marshal
266 self.assertIs(marshal.loads(marshal.dumps(True)), True)
267 self.assertIs(marshal.loads(marshal.dumps(False)), False)
/third_party/python/Doc/library/
Dmarshal.rst1 :mod:`marshal` --- Internal Python object serialization
4 .. module:: marshal
23 :mod:`shelve`. The :mod:`marshal` module exists mainly to support reading and
25 Therefore, the Python maintainers reserve the right to modify the marshal format
29 supports a substantially wider range of objects than marshal.
33 The :mod:`marshal` module is not intended to be secure against erroneous or
69 .. audit-event:: marshal.dumps value,version marshal.dump
75 (e.g. because the data has a different Python version's incompatible marshal
79 .. audit-event:: marshal.load "" marshal.load
89 it raises a single ``marshal.load`` event for the entire load operation.
[all …]
Dpersistence.rst8 persistent form on disk. The :mod:`pickle` and :mod:`marshal` modules can turn
21 marshal.rst
/third_party/jinja2/
D_compat.py3 import marshal
40 marshal_dump = marshal.dump
41 marshal_load = marshal.load
82 marshal.dump(code, f)
84 f.write(marshal.dumps(code))
88 return marshal.load(f)
89 return marshal.loads(f.read())
Dbccache.py10 import marshal
77 self.code = marshal.load(f)
88 marshal.dump(self.code, f)
/third_party/skia/third_party/externals/jinja2/
D_compat.py3 import marshal
40 marshal_dump = marshal.dump
41 marshal_load = marshal.load
82 marshal.dump(code, f)
84 f.write(marshal.dumps(code))
88 return marshal.load(f)
89 return marshal.loads(f.read())
/third_party/node/tools/inspector_protocol/jinja2/
Dbccache.py22 import marshal
32 marshal_dump = marshal.dump
33 marshal_load = marshal.load
38 marshal.dump(code, f)
40 f.write(marshal.dumps(code))
44 return marshal.load(f)
45 return marshal.loads(f.read())
/third_party/mesa3d/src/mapi/glapi/gen/
Dmarshal_XML.py59 self.marshal = element.get('marshal')
69 if self.marshal is not None:
70 return self.marshal
Dgl_marshal.py226 p.size_string(marshal = 1), p.get_base_type_string(),
231 p.size_string(marshal = 1), p.get_base_type_string(),
280 … out('variable_data += {0};'.format(p.size_string(False, marshal = 1)))
282 out('variable_data += {0};'.format(p.size_string(False, marshal = 1)))
329 out('int {0}_size = {1};'.format(p.name, p.size_string(marshal = 1)))
Dgl_API.dtd42 marshal NMTOKEN #IMPLIED attribute
128 marshal - One of "sync", "async", or "custom", defaulting to
133 generated but a custom implementation will be present in marshal.c.
138 marshal_call_before - insert the string at the beginning of the marshal
140 marshal_call_after - insert the string at the end of the marshal function
Dgl_XML.py566 def size_string(self, use_parens = 1, marshal = 0): argument
575 if self.counter or self.count_parameter_list or (self.marshal_count and marshal):
578 if self.marshal_count and marshal:
/third_party/python/Tools/pynche/
DSwitchboard.py45 import marshal
65 self.__optiondb = marshal.load(fp)
124 marshal.dump(self.__optiondb, fp)
/third_party/python/Tools/freeze/
Dregen_frozen.py4 import marshal
21 co_bytes = marshal.dumps(co)
Dmakefreeze.py1 import marshal
46 str = marshal.dumps(m.__code__)
/third_party/python/Modules/
Dconfig.c.in38 /* This module lives in marshal.c */
39 {"marshal", PyMarshal_Init},
/third_party/python/Tools/unicode/
Dgencodec.py29 import re, os, marshal, codecs
370 marshal.dump(d,f)
412 map = marshal.load(f)
/third_party/libffi/src/riscv/
Dffi.c209 static void marshal(call_builder *cb, ffi_type *type, int var, void *data) { in marshal() function
366 marshal(&cb, &ffi_type_pointer, 0, &rvalue); in ffi_call_int()
370 marshal(&cb, cif->arg_types[i], i >= cif->riscv_nfixedargs, avalue[i]); in ffi_call_int()
479 marshal(&cb, cif->rtype, 0, rvalue); in ffi_closure_inner()
/third_party/python/Lib/
DcProfile.py45 import marshal
48 marshal.dump(self.stats, f)
Dpstats.py26 import marshal
142 self.stats = marshal.load(f)
197 marshal.dump(self.stats, f)
/third_party/python/Doc/c-api/
Dutilities.rst17 marshal.rst
/third_party/python/Lib/idlelib/
Drpc.py32 import marshal
47 co = marshal.loads(ms)
54 ms = marshal.dumps(co)
/third_party/python/Misc/NEWS.d/
D3.5.0a2.rst290 marshal.dumps() is now 20-25% faster on average.
299 marshal.dumps() with protocols 3 and 4 is now 40-50% faster on average.

1234