A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-December/106833.html below:

[Python-Dev] Multiprocessing module - Synergeticprocessing (my custom module)

[Python-Dev] Multiprocessing module - Synergeticprocessing (my custom module) - Pickling unPickling issues [Python-Dev] Multiprocessing module - Synergeticprocessing (my custom module) - Pickling unPickling issuesexarkun at twistedmatrix.com exarkun at twistedmatrix.com
Thu Dec 16 16:25:56 CET 2010
On 02:00 pm, solipsis at pitrou.net wrote:
>On Thu, 16 Dec 2010 15:52:19 +0200
>Dimitrios Pritsos <dpritsos at extremepro.gr> wrote:
>>
>>Hello Michael,
>>
>>OK I will do sent it to the bug tracker. But what about the last issue
>>i.e. that even if the class is transfered-and-pickled-unpickled it
>>raises an exception if the class is defined into the __main__ script 
>>and
>>not imported from an other one. (see below) could you please guide me
>>where should I post this for someone to help me fix it!
>
>The likely explanation is that the __main__ module in the parent
>process isn't the same as in the child process, so fetching the class
>from that module doesn't work.
>If that's really important for you you could open a separate issue.

And another option is to use the simple, pleasant fix of not defining 
any functions or classes in __main__.  Define them in a real module and 
import them for use in __main__.

Jean-Paul
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4