Teks sumber — English
Terjemahan — Bahasa Indonesia
Allocates a new Python object using the C structure type *TYPE* and the Python type object *typeobj* (``PyTypeObject*``) by calling :c:func:`PyObject_Malloc` to allocate memory and initializing it like :c:func:`PyObject_Init`. The caller will own the only reference to the object (i.e. its reference count will be one).
Mengalokasikan objek Python baru menggunakan tipe struktur C *TYPE* dan objek tipe Python *typeobj* (``PyTypeObject*``) dengan memanggil :c:func:`PyObject_Malloc` untuk mengalokasikan memori dan menginisialisasinya sebagai :c:func:`PyObject_Init`. Pemanggil akan memiliki satu-satunya referensi ke objek tersebut (misal: jumlah referensinya adalah satu).
Avoid calling this directly to allocate memory for an object; call the type's :c:member:`~PyTypeObject.tp_alloc` slot instead.
Hindari memanggil ini secara langsung untuk mengalokasikan memori untuk sebuah objek; panggil slot :c:member:`~PyTypeObject.tp_alloc` dari tipe sebagai gantinya.