Home | History | Annotate | Download | only in Objects

Lines Matching defs:pnew

8838     PyUnicodeObject *tmp, *pnew;

8846 pnew = (PyUnicodeObject *) type->tp_alloc(type, n = tmp->length);
8847 if (pnew == NULL) {
8851 pnew->str = (Py_UNICODE*) PyObject_MALLOC(sizeof(Py_UNICODE) * (n+1));
8852 if (pnew->str == NULL) {
8853 _Py_ForgetReference((PyObject *)pnew);
8854 PyObject_Del(pnew);
8858 Py_UNICODE_COPY(pnew->str, tmp->str, n+1);
8859 pnew->length = n;
8860 pnew->hash = tmp->hash;
8862 return (PyObject *)pnew;