Teks sumber — English
Terjemahan — Bahasa Indonesia
Raises an :ref:`auditing event <auditing>` ``builtins.breakpoint`` with argument ``breakpointhook``.
Memunculkan :ref:`auditing event <auditing>` ``builtins.breakpoint`` dengan argumen ``breakpointhook``.
This function raises :exc:`SyntaxError` if the compiled source is invalid, including a *source* containing a null character or that cannot be decoded; :exc:`ValueError` if *mode* or *flags* is invalid, or if a string *source* contains surrogate characters; :exc:`MemoryError` or :exc:`RecursionError` if *source* is too complex to parse or compile, for example an expression with many thousands of nested operators; and :exc:`OverflowError` if *source* is too large.
Raises an :ref:`auditing event <auditing>` ``compile`` with arguments ``source`` and ``filename``. This event may also be raised by implicit compilation.
Memunculkan :ref:`auditing event <auditing>` ``compile`` dengan argumen ``source`` dan ``filename``. *event* ini juga dapat dimunculkan oleh kompilasi implisit.
If the argument is a string, it must contain either a real part (in the same format as for :func:`float`) or an imaginary part (in the same format but with a ``'j'`` or ``'J'`` suffix), or both real and imaginary parts (the sign of the imaginary part is mandatory in this case). The string can optionally be surrounded by whitespaces and the round parentheses ``'('`` and ``')'``, which are ignored. The string must not contain whitespace between ``'+'``, ``'-'``, the ``'j'`` or ``'J'`` suffix, and the decimal number. For example, ``complex('1+2j')`` is fine, but ``complex('1 + 2j')`` raises :exc:`ValueError`. More precisely, the input must conform to the :token:`~float:complexvalue` production rule in the following grammar, after parentheses and leading and trailing whitespace characters are removed:
raises
Raises an :ref:`auditing event <auditing>` ``exec`` with the code object as the argument. Code compilation events may also be raised.
Memunculkan :ref:`auditing event <auditing>` ``exec`` dengan objek kode sebagai argumen. Kompilasi kode *events* juga dapat dimunculkan.
``object().__format__(format_spec)`` raises :exc:`TypeError` if *format_spec* is not an empty string.
``object().__format__(format_spec)`` menimbulkan :exc:`TypeError` jika *format_spec* bukan string kosong.
The arguments are an object and a string. The result is ``True`` if the string is the name of one of the object's attributes, ``False`` if not. (This is implemented by calling ``getattr(object, name)`` and seeing whether it raises an :exc:`AttributeError` or not.)
Argumen adalah objek dan string. Hasilnya adalah ``True`` jika string adalah nama salah satu atribut objek, ``False`` jika tidak. (Ini diimplementasikan dengan memanggil ``getattr(object, name)`` dan melihat apakah itu memunculkan :exc:`AttributeError` atau tidak.)
Raises an :ref:`auditing event <auditing>` ``builtins.id`` with argument ``id``.
Memunculkan sebuah :ref:`auditing event <auditing>` ``builtins.id`` dengan argumen ``id``.
Raises an :ref:`auditing event <auditing>` ``builtins.input`` with argument ``prompt`` before reading input
Memunculkan :ref:`auditing event <auditing>` ``builtins.input`` dengan argumen ``prompt`` sebelum membaca masukan
Raises an :ref:`auditing event <auditing>` ``builtins.input/result`` with the result after successfully reading input.
``len`` raises :exc:`OverflowError` on lengths larger than :data:`sys.maxsize`, such as :class:`range(2 ** 100) <range>`.
Raises an :ref:`auditing event <auditing>` ``open`` with arguments ``path``, ``mode``, ``flags``.
Unlike the default behavior, it raises a :exc:`ValueError` if one iterable is :term:`exhausted` before the others: