Home
last modified time | relevance | path

Searched refs:newobj (Results 1 – 25 of 57) sorted by relevance

123

/external/python/cpython2/Objects/stringlib/
Dctype.h54 PyObject* newobj; in stringlib_lower() local
55 newobj = STRINGLIB_NEW(NULL, STRINGLIB_LEN(self)); in stringlib_lower()
56 if (!newobj) in stringlib_lower()
58 _Py_bytes_lower(STRINGLIB_STR(newobj), STRINGLIB_STR(self), in stringlib_lower()
60 return newobj; in stringlib_lower()
66 PyObject* newobj; in stringlib_upper() local
67 newobj = STRINGLIB_NEW(NULL, STRINGLIB_LEN(self)); in stringlib_upper()
68 if (!newobj) in stringlib_upper()
70 _Py_bytes_upper(STRINGLIB_STR(newobj), STRINGLIB_STR(self), in stringlib_upper()
72 return newobj; in stringlib_upper()
[all …]
Dstring_format.h234 PyObject *newobj; in getattr() local
238 newobj = PyObject_GetAttr(obj, str); in getattr()
240 return newobj; in getattr()
254 PyObject *newobj; in getitem_idx() local
258 newobj = PyObject_GetItem(obj, idx_obj); in getitem_idx()
260 return newobj; in getitem_idx()
267 PyObject *newobj; in getitem_str() local
271 newobj = PyObject_GetItem(obj, str); in getitem_str()
273 return newobj; in getitem_str()
/external/python/cpython3/Objects/stringlib/
Dctype.h61 PyObject* newobj; in stringlib_lower() local
62 newobj = STRINGLIB_NEW(NULL, STRINGLIB_LEN(self)); in stringlib_lower()
63 if (!newobj) in stringlib_lower()
65 _Py_bytes_lower(STRINGLIB_STR(newobj), STRINGLIB_STR(self), in stringlib_lower()
67 return newobj; in stringlib_lower()
73 PyObject* newobj; in stringlib_upper() local
74 newobj = STRINGLIB_NEW(NULL, STRINGLIB_LEN(self)); in stringlib_upper()
75 if (!newobj) in stringlib_upper()
77 _Py_bytes_upper(STRINGLIB_STR(newobj), STRINGLIB_STR(self), in stringlib_upper()
79 return newobj; in stringlib_upper()
[all …]
Dunicode_format.h147 PyObject *newobj; in getattr() local
151 newobj = PyObject_GetAttr(obj, str); in getattr()
153 return newobj; in getattr()
167 PyObject *newobj; in getitem_idx() local
171 newobj = PyObject_GetItem(obj, idx_obj); in getitem_idx()
173 return newobj; in getitem_idx()
180 PyObject *newobj; in getitem_str() local
184 newobj = PyObject_GetItem(obj, str); in getitem_str()
186 return newobj; in getitem_str()
/external/python/cpython3/Modules/_sha3/
Dsha3module.c163 SHA3object *newobj; in newSHA3object() local
164 newobj = (SHA3object *)PyObject_New(SHA3object, type); in newSHA3object()
165 if (newobj == NULL) { in newSHA3object()
168 newobj->lock = NULL; in newSHA3object()
169 return newobj; in newSHA3object()
282 SHA3object *newobj; in _sha3_sha3_224_copy_impl() local
284 if ((newobj = newSHA3object(Py_TYPE(self))) == NULL) { in _sha3_sha3_224_copy_impl()
288 SHA3_copystate(newobj->hash_state, self->hash_state); in _sha3_sha3_224_copy_impl()
290 return (PyObject *)newobj; in _sha3_sha3_224_copy_impl()
/external/python/cpython3/Modules/
Dsha1module.c329 SHA1object *newobj; in SHA1Type_copy_impl() local
331 if ((newobj = newSHA1object()) == NULL) in SHA1Type_copy_impl()
334 newobj->hash_state = self->hash_state; in SHA1Type_copy_impl()
335 return (PyObject *)newobj; in SHA1Type_copy_impl()
Dmd5module.c352 MD5object *newobj; in MD5Type_copy_impl() local
354 if ((newobj = newMD5object())==NULL) in MD5Type_copy_impl()
357 newobj->hash_state = self->hash_state; in MD5Type_copy_impl()
358 return (PyObject *)newobj; in MD5Type_copy_impl()
Dsha256module.c405 SHAobject *newobj; in SHA256Type_copy_impl() local
408 if ( (newobj = newSHA256object())==NULL) in SHA256Type_copy_impl()
411 if ( (newobj = newSHA224object())==NULL) in SHA256Type_copy_impl()
415 SHAcopy(self, newobj); in SHA256Type_copy_impl()
416 return (PyObject *)newobj; in SHA256Type_copy_impl()
D_operator.c1281 PyObject *newobj; in dotted_getattr() local
1293 newobj = PyObject_GetAttr(obj, attr_name); in dotted_getattr()
1295 if (newobj == NULL) { in dotted_getattr()
1299 obj = newobj; in dotted_getattr()
1302 newobj = PyObject_GetAttr(obj, attr); in dotted_getattr()
1303 if (newobj == NULL) in dotted_getattr()
1305 obj = newobj; in dotted_getattr()
Dsha512module.c462 SHAobject *newobj; in SHA512Type_copy_impl() local
465 if ( (newobj = newSHA512object())==NULL) in SHA512Type_copy_impl()
468 if ( (newobj = newSHA384object())==NULL) in SHA512Type_copy_impl()
472 SHAcopy(self, newobj); in SHA512Type_copy_impl()
473 return (PyObject *)newobj; in SHA512Type_copy_impl()
D_hashopenssl.c370 EVPobject *newobj; in EVP_copy_impl() local
372 if ((newobj = newEVPobject(Py_TYPE(self))) == NULL) in EVP_copy_impl()
375 if (!locked_EVP_MD_CTX_copy(newobj->ctx, self)) { in EVP_copy_impl()
376 Py_DECREF(newobj); in EVP_copy_impl()
379 return (PyObject *)newobj; in EVP_copy_impl()
D_json.c1400 PyObject *newobj; in encoder_listencode_obj() local
1461 newobj = PyObject_CallOneArg(s->defaultfn, obj); in encoder_listencode_obj()
1462 if (newobj == NULL) { in encoder_listencode_obj()
1468 Py_DECREF(newobj); in encoder_listencode_obj()
1472 rv = encoder_listencode_obj(s, acc, newobj, indent_level); in encoder_listencode_obj()
1475 Py_DECREF(newobj); in encoder_listencode_obj()
/external/python/cpython2/Objects/
Dstringobject.c1994 PyObject *newobj; in string_lower() local
1996 newobj = PyString_FromStringAndSize(NULL, n); in string_lower()
1997 if (!newobj) in string_lower()
2000 s = PyString_AS_STRING(newobj); in string_lower()
2010 return newobj; in string_lower()
2027 PyObject *newobj; in string_upper() local
2029 newobj = PyString_FromStringAndSize(NULL, n); in string_upper()
2030 if (!newobj) in string_upper()
2033 s = PyString_AS_STRING(newobj); in string_upper()
2043 return newobj; in string_upper()
[all …]
Dtupleobject.c661 PyObject *tmp, *newobj, *item; in tuple_subtype_new() local
669 newobj = type->tp_alloc(type, n = PyTuple_GET_SIZE(tmp)); in tuple_subtype_new()
670 if (newobj == NULL) in tuple_subtype_new()
675 PyTuple_SET_ITEM(newobj, i, item); in tuple_subtype_new()
678 return newobj; in tuple_subtype_new()
Dintobject.c1120 PyObject *tmp, *newobj; in int_subtype_new() local
1137 newobj = type->tp_alloc(type, 0); in int_subtype_new()
1138 if (newobj == NULL) { in int_subtype_new()
1142 ((PyIntObject *)newobj)->ob_ival = ival; in int_subtype_new()
1144 return newobj; in int_subtype_new()
Dfloatobject.c1835 PyObject *tmp, *newobj; in float_subtype_new() local
1842 newobj = type->tp_alloc(type, 0); in float_subtype_new()
1843 if (newobj == NULL) { in float_subtype_new()
1847 ((PyFloatObject *)newobj)->ob_fval = ((PyFloatObject *)tmp)->ob_fval; in float_subtype_new()
1849 return newobj; in float_subtype_new()
/external/python/cpython2/Modules/
D_hashopenssl.c202 EVPobject *newobj; in EVP_copy() local
204 if ( (newobj = newEVPobject(self->name))==NULL) in EVP_copy()
207 if (!locked_EVP_MD_CTX_copy(newobj->ctx, self)) { in EVP_copy()
210 return (PyObject *)newobj; in EVP_copy()
Dshamodule.c363 SHAobject *newobj; in SHA_copy() local
365 if ( (newobj = newSHAobject())==NULL) in SHA_copy()
368 SHAcopy(self, newobj); in SHA_copy()
369 return (PyObject *)newobj; in SHA_copy()
Dsha256module.c410 SHAobject *newobj; in SHA256_copy() local
413 if ( (newobj = newSHA256object())==NULL) in SHA256_copy()
416 if ( (newobj = newSHA224object())==NULL) in SHA256_copy()
420 SHAcopy(self, newobj); in SHA256_copy()
421 return (PyObject *)newobj; in SHA256_copy()
Dsha512module.c476 SHAobject *newobj; in SHA512_copy() local
479 if ( (newobj = newSHA512object())==NULL) in SHA512_copy()
482 if ( (newobj = newSHA384object())==NULL) in SHA512_copy()
486 SHAcopy(self, newobj); in SHA512_copy()
487 return (PyObject *)newobj; in SHA512_copy()
Doperator.c669 PyObject *newobj, *str; in dotted_getattr() local
677 newobj = PyObject_GetAttr(obj, str); in dotted_getattr()
680 if (newobj == NULL) in dotted_getattr()
682 obj = newobj; in dotted_getattr()
/external/python/cpython3/Objects/
Dtupleobject.c733 PyObject *tmp, *newobj, *item; in tuple_subtype_new() local
741 newobj = type->tp_alloc(type, n = PyTuple_GET_SIZE(tmp)); in tuple_subtype_new()
742 if (newobj == NULL) { in tuple_subtype_new()
749 PyTuple_SET_ITEM(newobj, i, item); in tuple_subtype_new()
752 return newobj; in tuple_subtype_new()
Dtypeobject.c4591 PyObject *newobj, *newargs, *state, *listitems, *dictitems; in reduce_newobj() local
4617 newobj = _PyObject_GetAttrId(copyreg, &PyId___newobj__); in reduce_newobj()
4619 if (newobj == NULL) { in reduce_newobj()
4627 Py_DECREF(newobj); in reduce_newobj()
4643 newobj = _PyObject_GetAttrId(copyreg, &PyId___newobj_ex__); in reduce_newobj()
4645 if (newobj == NULL) { in reduce_newobj()
4654 Py_DECREF(newobj); in reduce_newobj()
4668 Py_DECREF(newobj); in reduce_newobj()
4673 Py_DECREF(newobj); in reduce_newobj()
4679 result = PyTuple_Pack(5, newobj, newargs, state, listitems, dictitems); in reduce_newobj()
[all …]
Dfloatobject.c1616 PyObject *tmp, *newobj; in float_subtype_new() local
1623 newobj = type->tp_alloc(type, 0); in float_subtype_new()
1624 if (newobj == NULL) { in float_subtype_new()
1628 ((PyFloatObject *)newobj)->ob_fval = ((PyFloatObject *)tmp)->ob_fval; in float_subtype_new()
1630 return newobj; in float_subtype_new()
/external/python/cpython2/Lib/plat-mac/
Daepack.py356 newobj = mkobject(dict)
359 newobj.__class__ = classtype
360 return newobj

123