Teks sumber — English
Terjemahan — Bahasa Indonesia
These functions are useful when creating your own extension functions and methods. Additional information and examples are available in :ref:`extending-index`.
Fungsi-fungsi ini berguna saat membuat fungsi dan metode ekstensi Anda sendiri. Informasi tambahan dan contoh tersedia di :ref:`extending-index`.
Tests the value passed in for truth (a boolean **p**\ redicate) and converts the result to its equivalent C true/false integer value. Sets the int to ``1`` if the expression was true and ``0`` if it was false. This accepts any valid Python value. See :ref:`truth` for more information about how Python tests values for truth.