Searched refs:NEWOBJ (Results 1 - 3 of 3) sorted by relevance
/external/python/cpython2/Lib/ |
H A D | pickle.py | 150 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/cpython2/Lib/test/ |
H A D | pickletester.py | 707 '\x81', # NEWOBJ 737 # NEWOBJ 1236 # NEWOBJ should use the __class__ rather than the raw type 1357 self.assertEqual(opcode_in_pickle(pickle.NEWOBJ, s), proto >= 2) 1373 self.assertEqual(opcode_in_pickle(pickle.NEWOBJ, s), proto >= 2)
|
/external/python/cpython2/Modules/ |
H A D | cPickle.c | 76 #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...] |
Completed in 197 milliseconds