@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.14\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2025-07-25 14:21 +0000\n "
14+ "POT-Creation-Date : 2025-07-31 14:20 +0000\n "
1515"PO-Revision-Date : 2025-07-18 18:49+0000\n "
1616"Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n "
1717"Language-Team : German (https://app.transifex.com/python-doc/teams/5390/de/)\n "
@@ -138,6 +138,13 @@ msgid ""
138138"necessary, see :ref:`multiprocessing-programming`."
139139msgstr ""
140140
141+ msgid ""
142+ "The arguments to :class:`Process` usually need to be unpickleable from "
143+ "within the child process. If you tried typing the above example directly "
144+ "into a REPL it could lead to an :exc:`AttributeError` in the child process "
145+ "trying to locate the *f* function in the ``__main__`` module."
146+ msgstr ""
147+
141148msgid "Contexts and start methods"
142149msgstr ""
143150
@@ -293,8 +300,12 @@ msgid ""
293300msgstr ""
294301
295302msgid ""
296- "A library which wants to use a particular start method should probably use :"
297- "func:`get_context` to avoid interfering with the choice of the library user."
303+ "Libraries using :mod:`multiprocessing` or :class:`~concurrent.futures."
304+ "ProcessPoolExecutor` should be designed to allow their users to provide "
305+ "their own multiprocessing context. Using a specific context of your own "
306+ "within a library can lead to incompatibilities with the rest of the library "
307+ "user's application. Always document if your library requires a specific "
308+ "start method."
298309msgstr ""
299310
300311msgid ""
@@ -665,10 +676,50 @@ msgstr ""
665676
666677msgid ""
667678"If a subclass overrides the constructor, it must make sure it invokes the "
668- "base class constructor (:meth:`Process .__init__`) before doing anything else "
679+ "base class constructor (``super() .__init__()` `) before doing anything else "
669680"to the process."
670681msgstr ""
671682
683+ msgid ""
684+ "In general, all arguments to :class:`Process` must be picklable. This is "
685+ "frequently observed when trying to create a :class:`Process` or use a :class:"
686+ "`concurrent.futures.ProcessPoolExecutor` from a REPL with a locally defined "
687+ "*target* function."
688+ msgstr ""
689+
690+ msgid ""
691+ "Passing a callable object defined in the current REPL session causes the "
692+ "child process to die via an uncaught :exc:`AttributeError` exception when "
693+ "starting as *target* must have been defined within an importable module in "
694+ "order to be loaded during unpickling."
695+ msgstr ""
696+
697+ msgid "Example of this uncatchable error from the child::"
698+ msgstr ""
699+
700+ msgid ""
701+ ">>> import multiprocessing as mp\n"
702+ ">>> def knigit():\n"
703+ "... print(\" Ni!\" )\n"
704+ "...\n"
705+ ">>> process = mp.Process(target=knigit)\n"
706+ ">>> process.start()\n"
707+ ">>> Traceback (most recent call last):\n"
708+ " File \" .../multiprocessing/spawn.py\" , line ..., in spawn_main\n"
709+ " File \" .../multiprocessing/spawn.py\" , line ..., in _main\n"
710+ "AttributeError: module '__main__' has no attribute 'knigit'\n"
711+ ">>> process\n"
712+ "<SpawnProcess name='SpawnProcess-1' pid=379473 parent=378707 stopped "
713+ "exitcode=1>"
714+ msgstr ""
715+
716+ msgid ""
717+ "See :ref:`multiprocessing-programming-spawn`. While this restriction is not "
718+ "true if using the ``\" fork\" `` start method, as of Python ``3.14`` that is "
719+ "no longer the default on any platform. See :ref:`multiprocessing-start-"
720+ "methods`. See also :gh:`132898`."
721+ msgstr ""
722+
672723msgid "Added the *daemon* parameter."
673724msgstr ""
674725
@@ -3496,10 +3547,10 @@ msgid "More picklability"
34963547msgstr ""
34973548
34983549msgid ""
3499- "Ensure that all arguments to :meth:`Process.__init__ ` are picklable. Also, "
3500- "if you subclass :class:`~multiprocessing. Process` then make sure that "
3501- "instances will be picklable when the :meth:`Process.start <multiprocessing. "
3502- "Process.start>` method is called."
3550+ "Ensure that all arguments to :class:`~multiprocessing.Process ` are "
3551+ "picklable. Also, if you subclass `` Process.__init__``, you must make sure "
3552+ "that instances will be picklable when the :meth:`Process.start "
3553+ "<multiprocessing. Process.start>` method is called."
35033554msgstr ""
35043555
35053556msgid "Global variables"
0 commit comments