This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Orlowski
Recipients LambertDW, Orlowski, loewis
Date 2009-01-30.10:53:00
SpamBayes Score 1.2672049e-08
Marked as misclassified No
Message-id <4982DBF3.4060602@genesilico.pl>
In-reply-to <4982010B.5000503@v.loewis.de>
Content
OK, I see and if don't want l to exist in f() I have to:

def f():
   pass

def a():
   l=[]
   f()

a()

????

Jurek

Martin v. Löwis wrote:
> Martin v. Löwis <martin@v.loewis.de> added the comment:
> 
>> I still do not understand what is going on when python executed thic 
>> code. I have a local variable l in my parent process. 
> 
> No, you don't. It's a global variable, not a local one.
> 
>> When I create a 
>> child process, program makes first makes a copy of memory. Than what?
> 
> It doesn't have to do anything with the multiprocessing at all.
> For comparison, just run the Python script
> 
> def f():
>   del l
> l = []
> f()
> 
> It produces the same error, with no multiprocessing involved.
> 
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue5092>
> _______________________________________
> 
> 
>
History
Date User Action Args
2009-01-30 10:53:04Orlowskisetrecipients: + Orlowski, loewis, LambertDW
2009-01-30 10:53:02Orlowskilinkissue5092 messages
2009-01-30 10:53:01Orlowskicreate