Home
last modified time | relevance | path

Searched refs:NEWOBJ (Results 1 - 3 of 3) sorted by relevance

/third_party/python/Lib/
H A Dpickle.py159 NEWOBJ = b'\x81' # build object by applying cls.__new__ to argtuple variable
186 NEWOBJ_EX = b'\x92' # like NEWOBJ but work with keyword only arguments
654 # use the more efficient NEWOBJ opcode, while still
667 # cls, the remaining args tuple, and the NEWOBJ code,
689 write(NEWOBJ)
1516 dispatch[NEWOBJ[0]] = load_newobj
/third_party/python/Modules/
H A D_pickle.c94 NEWOBJ = '\x81', enumerator
3971 const char newobj_op = NEWOBJ; in save_reduce()
4201 /* Add NEWOBJ opcode. */ in save_reduce()
4205 else { /* Not using NEWOBJ. */ in save_reduce()
5923 use_kwargs ? "NEWOBJ_EX" : "NEWOBJ", in newobj_unpickling_error()
6914 OP_ARG(NEWOBJ, load_newobj, 0) in load()
/third_party/python/Lib/test/
H A Dpickletester.py566 141: \x81 NEWOBJ
637 138: \x81 NEWOBJ
716 146: \x81 NEWOBJ
1230 b'\x81', # NEWOBJ
1268 b'cbuiltins\nlist\n)(\x81', # NEWOBJ
2145 # NEWOBJ should use the __class__ rather than the raw type
2312 self.assertEqual(opcode_in_pickle(pickle.NEWOBJ, s),
2332 self.assertEqual(opcode_in_pickle(pickle.NEWOBJ, s),
2352 self.assertFalse(opcode_in_pickle(pickle.NEWOBJ, s))

Completed in 17 milliseconds