@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.14\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2026-05-13 17:14 +0000\n "
14+ "POT-Creation-Date : 2026-05-19 17:38 +0000\n "
1515"PO-Revision-Date : 2026-05-08 17:18+0000\n "
1616"Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2026\n "
1717"Language-Team : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
@@ -576,17 +576,69 @@ msgstr ""
576576msgid "Return ``True`` if the object is a bound method written in Python."
577577msgstr ""
578578
579- msgid "Return ``True`` if the object is a :term:`package`."
579+ msgid "For example, given this class::"
580+ msgstr ""
581+
582+ msgid ""
583+ ">>> class Greeter:\n"
584+ "... def say_hello(self):\n"
585+ "... print('hello!')"
586+ msgstr ""
587+
588+ msgid ""
589+ "A bound method (also known as an *instance method*) is created when "
590+ "accessing ``say_hello`` (a :term:`function` defined in the ``Greeter`` "
591+ "namespace) through an instance of the ``Greeter`` class::"
592+ msgstr ""
593+
594+ msgid ""
595+ ">>> instance = Greeter()\n"
596+ "\n"
597+ ">>> instance.say_hello\n"
598+ "<bound method Greeter.say_hello of <__main__.Greeter object ...>>\n"
599+ ">>> ismethod(instance.say_hello)\n"
600+ "True\n"
601+ ">>> isfunction(instance.say_hello)\n"
602+ "False"
603+ msgstr ""
604+
605+ msgid ""
606+ "Accessing ``say_hello`` through the ``Greeter`` class will return the "
607+ "function itself. For this function, :func:`ismethod` will return ``False``, "
608+ "but :func:`isfunction` will return ``True``::"
609+ msgstr ""
610+
611+ msgid ""
612+ ">>> Greeter.say_hello\n"
613+ "<function Greeter.say_hello at 0x7f7503854a90>\n"
614+ ">>> ismethod(Greeter.say_hello)\n"
615+ "False\n"
616+ ">>> isfunction(Greeter.say_hello)\n"
617+ "True"
618+ msgstr ""
619+
620+ msgid "See :ref:`typesmethods` for details."
580621msgstr ""
581622
582623msgid ""
583624"Return ``True`` if the object is a Python function, which includes functions "
584625"created by a :term:`lambda` expression."
585626msgstr ""
586627
628+ msgid "See the note for :func:`~inspect.ismethod` for an example."
629+ msgstr ""
630+
631+ msgid "Return ``True`` if the object is a :term:`package`."
632+ msgstr ""
633+
587634msgid "Return ``True`` if the object is a Python generator function."
588635msgstr ""
589636
637+ msgid ""
638+ "It also returns ``True`` for bound methods created from Python generator "
639+ "functions (see :ref:`typesmethods` for more information)."
640+ msgstr ""
641+
590642msgid ""
591643"Functions wrapped in :func:`functools.partial` now return ``True`` if the "
592644"wrapped function is a Python generator function."
0 commit comments