@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.13\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2026-02-03 15:30 +0000\n "
14+ "POT-Creation-Date : 2026-02-21 15:11 +0000\n "
1515"PO-Revision-Date : 2025-09-15 01:03+0000\n "
1616"Last-Translator : python-doc bot, 2025\n "
1717"Language-Team : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
@@ -619,37 +619,56 @@ msgstr ""
619619msgid "Signal Handling"
620620msgstr ""
621621
622- msgid "This function interacts with Python's signal handling."
622+ msgid ""
623+ "Handle external interruptions, such as signals or activating a debugger, "
624+ "whose processing has been delayed until it is safe to run Python code and/or "
625+ "raise exceptions."
623626msgstr ""
624627
625628msgid ""
626- "If the function is called from the main thread and under the main Python "
627- "interpreter, it checks whether a signal has been sent to the processes and "
628- "if so, invokes the corresponding signal handler. If the :mod:`signal ` "
629- "module is supported, this can invoke a signal handler written in Python ."
629+ "For example, pressing :kbd:`Ctrl-C` causes a terminal to send the :py:data: "
630+ "`signal.SIGINT` signal. This function executes the corresponding Python "
631+ "signal handler, which, by default, raises the :exc:`KeyboardInterrupt ` "
632+ "exception ."
630633msgstr ""
631634
632635msgid ""
633- "The function attempts to handle all pending signals, and then returns ``0``. "
634- "However, if a Python signal handler raises an exception, the error indicator "
635- "is set and the function returns ``-1`` immediately (such that other pending "
636- "signals may not have been handled yet: they will be on the next :c:func:"
637- "`PyErr_CheckSignals()` invocation). "
636+ ":c:func:`!PyErr_CheckSignals` should be called by long-running C code "
637+ "frequently enough so that the response appears immediate to humans. "
638+ msgstr " "
639+
640+ msgid "Handlers invoked by this function currently include: "
638641msgstr ""
639642
640643msgid ""
641- "If the function is called from a non-main thread, or under a non-main Python "
642- "interpreter, it does nothing and returns ``0`` ."
644+ "Signal handlers, including Python functions registered using the :mod: "
645+ "`signal` module ."
643646msgstr ""
644647
645648msgid ""
646- "This function can be called by long-running C code that wants to be "
647- "interruptible by user requests (such as by pressing Ctrl-C)."
649+ "Signal handlers are only run in the main thread of the main interpreter."
648650msgstr ""
649651
650652msgid ""
651- "The default Python signal handler for :c:macro:`!SIGINT` raises the :exc:"
652- "`KeyboardInterrupt` exception."
653+ "(This is where the function got the name: originally, signals were the only "
654+ "way to interrupt the interpreter.)"
655+ msgstr ""
656+
657+ msgid "Running the garbage collector, if necessary."
658+ msgstr ""
659+
660+ msgid ""
661+ "If any handler raises an exception, immediately return ``-1`` with that "
662+ "exception set. Any remaining interruptions are left to be processed on the "
663+ "next :c:func:`PyErr_CheckSignals()` invocation, if appropriate."
664+ msgstr ""
665+
666+ msgid ""
667+ "If all handlers finish successfully, or there are no handlers to run, return "
668+ "``0``."
669+ msgstr ""
670+
671+ msgid "This function may now invoke the garbage collector."
653672msgstr ""
654673
655674msgid ""
0 commit comments