Pelokalan
Python ID
id en
Masuk
Proyek
c-api__bytearray.po Berkas proyek · python-docs-id-3.14 · Bahasa Indonesia
Modul PO Hanya lihat
Teks sumber — English
Terjemahan — Bahasa Indonesia
Byte Array Objects
Objek Byte Array
This subtype of :c:type:`PyObject` represents a Python bytearray object.
Subtipe dari :c:type:`PyObject` ini mewakili objek bytearray Python.
The internal buffer of :c:type:`PyByteArrayObject` always includes an extra trailing null byte for compatibility with null terminated C strings. This extra byte is not counted in :c:func:`PyByteArray_Size` nor in the *len* arguments of the functions below.
This instance of :c:type:`PyTypeObject` represents the Python bytearray type; it is the same object as :class:`bytearray` in the Python layer.
Instance dari :c:type:`PyTypeObject` mewakili tipe bytearray Python; itu adalah objek yang sama dengan :class:`bytearray` di lapisan Python.
Return true if the object *o* is a bytearray object or an instance of a subtype of the bytearray type. This function always succeeds.
Mengembalikan nilai true jika objek *o* adalah objek bytearray atau turunan dari subtipe tipe bytearray. Fungsi ini selalu berhasil.
Return true if the object *o* is a bytearray object, but not an instance of a subtype of the bytearray type. This function always succeeds.
Mengembalikan nilai true jika objek *o* adalah objek bytearray, tetapi bukan turunan dari subtipe tipe bytearray. Fungsi ini selalu berhasil.
Return a new bytearray object from any object, *o*, that implements the :ref:`buffer protocol <bufferobjects>`.
Mengembalikan objek bytearray baru dari objek apa pun, *o*, yang mengimplementasikan :ref:`buffer protocol <bufferobjects>`.
If the object implements the buffer protocol, then the buffer must not be mutated while the bytearray object is being created.
Create a new bytearray object from *string* and its length, *len*.
It is not thread-safe to mutate the bytearray object while using the returned char array.
object
objek