@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.15\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2026-05-13 16:14 +0000\n "
14+ "POT-Creation-Date : 2026-05-21 16:35 +0000\n "
1515"PO-Revision-Date : 2025-09-16 00:01+0000\n "
1616"Last-Translator : python-doc bot, 2025\n "
1717"Language-Team : Indonesian (https://app.transifex.com/python-doc/teams/5390/ "
@@ -598,17 +598,69 @@ msgstr ""
598598msgid "Return ``True`` if the object is a bound method written in Python."
599599msgstr ""
600600
601- msgid "Return ``True`` if the object is a :term:`package`."
601+ msgid "For example, given this class::"
602+ msgstr ""
603+
604+ msgid ""
605+ ">>> class Greeter:\n"
606+ "... def say_hello(self):\n"
607+ "... print('hello!')"
608+ msgstr ""
609+
610+ msgid ""
611+ "A bound method (also known as an *instance method*) is created when "
612+ "accessing ``say_hello`` (a :term:`function` defined in the ``Greeter`` "
613+ "namespace) through an instance of the ``Greeter`` class::"
614+ msgstr ""
615+
616+ msgid ""
617+ ">>> instance = Greeter()\n"
618+ "\n"
619+ ">>> instance.say_hello\n"
620+ "<bound method Greeter.say_hello of <__main__.Greeter object ...>>\n"
621+ ">>> ismethod(instance.say_hello)\n"
622+ "True\n"
623+ ">>> isfunction(instance.say_hello)\n"
624+ "False"
625+ msgstr ""
626+
627+ msgid ""
628+ "Accessing ``say_hello`` through the ``Greeter`` class will return the "
629+ "function itself. For this function, :func:`ismethod` will return ``False``, "
630+ "but :func:`isfunction` will return ``True``::"
631+ msgstr ""
632+
633+ msgid ""
634+ ">>> Greeter.say_hello\n"
635+ "<function Greeter.say_hello at 0x7f7503854a90>\n"
636+ ">>> ismethod(Greeter.say_hello)\n"
637+ "False\n"
638+ ">>> isfunction(Greeter.say_hello)\n"
639+ "True"
640+ msgstr ""
641+
642+ msgid "See :ref:`typesmethods` for details."
602643msgstr ""
603644
604645msgid ""
605646"Return ``True`` if the object is a Python function, which includes functions "
606647"created by a :term:`lambda` expression."
607648msgstr ""
608649
650+ msgid "See the note for :func:`~inspect.ismethod` for an example."
651+ msgstr ""
652+
653+ msgid "Return ``True`` if the object is a :term:`package`."
654+ msgstr ""
655+
609656msgid "Return ``True`` if the object is a Python generator function."
610657msgstr ""
611658
659+ msgid ""
660+ "It also returns ``True`` for bound methods created from Python generator "
661+ "functions (see :ref:`typesmethods` for more information)."
662+ msgstr ""
663+
612664msgid ""
613665"Functions wrapped in :func:`functools.partial` now return ``True`` if the "
614666"wrapped function is a Python generator function."
0 commit comments