@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.13\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2025-07-25 15:00 +0000\n "
14+ "POT-Creation-Date : 2025-07-31 14:57 +0000\n "
1515"PO-Revision-Date : 2025-07-18 19:22+0000\n "
1616"Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n "
1717"Language-Team : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
@@ -205,6 +205,13 @@ msgstr ""
205205"Щоб отримати пояснення, чому потрібна частина ``if __name__ == "
206206"'__main__''``, див. :ref:`multiprocessing-programming`."
207207
208+ msgid ""
209+ "The arguments to :class:`Process` usually need to be unpickleable from "
210+ "within the child process. If you tried typing the above example directly "
211+ "into a REPL it could lead to an :exc:`AttributeError` in the child process "
212+ "trying to locate the *f* function in the ``__main__`` module."
213+ msgstr ""
214+
208215msgid "Contexts and start methods"
209216msgstr "Контексти та методи запуску"
210217
@@ -432,12 +439,13 @@ msgstr ""
432439"запуску *spawn* або *forkserver*."
433440
434441msgid ""
435- "A library which wants to use a particular start method should probably use :"
436- "func:`get_context` to avoid interfering with the choice of the library user."
442+ "Libraries using :mod:`multiprocessing` or :class:`~concurrent.futures."
443+ "ProcessPoolExecutor` should be designed to allow their users to provide "
444+ "their own multiprocessing context. Using a specific context of your own "
445+ "within a library can lead to incompatibilities with the rest of the library "
446+ "user's application. Always document if your library requires a specific "
447+ "start method."
437448msgstr ""
438- "Бібліотека, яка хоче використовувати певний метод запуску, ймовірно, повинна "
439- "використовувати :func:`get_context`, щоб уникнути втручання у вибір "
440- "користувача бібліотеки."
441449
442450msgid ""
443451"The ``'spawn'`` and ``'forkserver'`` start methods generally cannot be used "
@@ -999,12 +1007,49 @@ msgstr ""
9991007
10001008msgid ""
10011009"If a subclass overrides the constructor, it must make sure it invokes the "
1002- "base class constructor (:meth:`Process .__init__`) before doing anything else "
1010+ "base class constructor (``super() .__init__()` `) before doing anything else "
10031011"to the process."
10041012msgstr ""
1005- "Якщо підклас перевизначає конструктор, він повинен переконатися, що він "
1006- "викликає конструктор базового класу (:meth:`Process.__init__`), перш ніж "
1007- "щось робити з процесом."
1013+
1014+ msgid ""
1015+ "In general, all arguments to :class:`Process` must be picklable. This is "
1016+ "frequently observed when trying to create a :class:`Process` or use a :class:"
1017+ "`concurrent.futures.ProcessPoolExecutor` from a REPL with a locally defined "
1018+ "*target* function."
1019+ msgstr ""
1020+
1021+ msgid ""
1022+ "Passing a callable object defined in the current REPL session causes the "
1023+ "child process to die via an uncaught :exc:`AttributeError` exception when "
1024+ "starting as *target* must have been defined within an importable module in "
1025+ "order to be loaded during unpickling."
1026+ msgstr ""
1027+
1028+ msgid "Example of this uncatchable error from the child::"
1029+ msgstr ""
1030+
1031+ msgid ""
1032+ ">>> import multiprocessing as mp\n"
1033+ ">>> def knigit():\n"
1034+ "... print(\" Ni!\" )\n"
1035+ "...\n"
1036+ ">>> process = mp.Process(target=knigit)\n"
1037+ ">>> process.start()\n"
1038+ ">>> Traceback (most recent call last):\n"
1039+ " File \" .../multiprocessing/spawn.py\" , line ..., in spawn_main\n"
1040+ " File \" .../multiprocessing/spawn.py\" , line ..., in _main\n"
1041+ "AttributeError: module '__main__' has no attribute 'knigit'\n"
1042+ ">>> process\n"
1043+ "<SpawnProcess name='SpawnProcess-1' pid=379473 parent=378707 stopped "
1044+ "exitcode=1>"
1045+ msgstr ""
1046+
1047+ msgid ""
1048+ "See :ref:`multiprocessing-programming-spawn`. While this restriction is not "
1049+ "true if using the ``\" fork\" `` start method, as of Python ``3.14`` that is "
1050+ "no longer the default on any platform. See :ref:`multiprocessing-start-"
1051+ "methods`. See also :gh:`132898`."
1052+ msgstr ""
10081053
10091054msgid "Added the *daemon* parameter."
10101055msgstr "Добавлен параметр *daemon*."
@@ -5146,15 +5191,11 @@ msgid "More picklability"
51465191msgstr "Більше маринування"
51475192
51485193msgid ""
5149- "Ensure that all arguments to :meth:`Process.__init__ ` are picklable. Also, "
5150- "if you subclass :class:`~multiprocessing. Process` then make sure that "
5151- "instances will be picklable when the :meth:`Process.start <multiprocessing. "
5152- "Process.start>` method is called."
5194+ "Ensure that all arguments to :class:`~multiprocessing.Process ` are "
5195+ "picklable. Also, if you subclass `` Process.__init__``, you must make sure "
5196+ "that instances will be picklable when the :meth:`Process.start "
5197+ "<multiprocessing. Process.start>` method is called."
51535198msgstr ""
5154- "Переконайтеся, що всі аргументи :meth:`Process.__init__` можна вибрати. Крім "
5155- "того, якщо ви створите підклас :class:`~multiprocessing.Process`, то "
5156- "переконайтеся, що екземпляри можна вибрати під час виклику методу :meth:"
5157- "`Process.start <multiprocessing.Process.start>`."
51585199
51595200msgid "Global variables"
51605201msgstr "Глобальні змінні"
0 commit comments