Pelokalan
Python ID
id en
Masuk
Proyek
c-api__type.po Berkas proyek · python-docs-id-3.14 · Bahasa Indonesia
Modul PO Hanya lihat
Teks sumber — English
Terjemahan — Bahasa Indonesia
Type Objects
Objek Tipe
This is the type object for type objects; it is the same object as :class:`type` in the Python layer.
Finalize a type object. This should be called on all type objects to finish their initialization. This function is responsible for adding inherited slots from a type's base class. Return ``0`` on success, or return ``-1`` and sets an exception on error.
The slot can be set to a tuple of type objects which the newly created type should inherit from, like the "positional arguments" of a Python :ref:`class definition <class>`.