Searched defs:NEWOBJ (Results 1 - 4 of 4) sorted by relevance

/external/python/cpython2/Lib/
H A Dpickle.py150 NEWOBJ = '\x81' # build object by applying cls.__new__ to argtuple variable
360 # Protocol 2 special case: if func's name is __newobj__, use NEWOBJ
363 # use the more efficient NEWOBJ opcode, while still
376 # cls, the remaining args tuple, and the NEWOBJ code,
398 write(NEWOBJ)
1091 dispatch[NEWOBJ] = load_newobj
/external/python/cpython3/Lib/
H A Dpickle.py150 NEWOBJ = b'\x81' # build object by applying cls.__new__ to argtuple variable
176 NEWOBJ_EX = b'\x92' # like NEWOBJ but work with keyword only arguments
572 # use the more efficient NEWOBJ opcode, while still
585 # cls, the remaining args tuple, and the NEWOBJ code,
607 write(NEWOBJ)
1325 dispatch[NEWOBJ[0]] = load_newobj
/external/python/cpython2/Modules/
H A DcPickle.c76 #define NEWOBJ '\x81' /* build object by applying cls.__new__ to argtuple */ macro
2395 static char newobj = NEWOBJ;
2442 * NEWOBJ. This consumes a lot of code.
2519 /* Add NEWOBJ opcode. */
2524 /* Not using NEWOBJ. */
4007 PyErr_SetString(UnpicklingError, "NEWOBJ expected an arg "
4016 PyErr_SetString(UnpicklingError, "NEWOBJ class argument "
4021 PyErr_SetString(UnpicklingError, "NEWOBJ class argument "
4884 case NEWOBJ:
5301 case NEWOBJ
[all...]
/external/python/cpython3/Modules/
H A D_pickle.c69 NEWOBJ = '\x81', enumerator in enum:opcode
3491 const char newobj_op = NEWOBJ;
3717 /* Add NEWOBJ opcode. */
3721 else { /* Not using NEWOBJ. */
5287 "NEWOBJ expected an arg " "tuple.");
5296 PyErr_SetString(st->UnpicklingError, "NEWOBJ class argument "
5301 PyErr_SetString(st->UnpicklingError, "NEWOBJ class argument "
6278 OP(NEWOBJ, load_newobj)

Completed in 402 milliseconds