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 jango
Recipients jango, pitrou
Date 2011-12-10.00:55:32
SpamBayes Score 3.5763518e-05
Marked as misclassified No
Message-id <4EE2AE03.3020401@gmail.com>
In-reply-to <1323476620.95.0.430209740825.issue13569@psf.upfronthosting.co.za>
Content
>>Are you sure you don't store the logger in your process' __init__ 
method? The __init__ method is called in the parent and the process 
instance is transfered to the child when you call start() on the process.

To make sure we are on the same page, here is what I changed it to:
https://github.com/jango/PC/blob/test/pc/pc.py

-> lines 47-50 commented out (init of PC class that initialises threads);
-> lines 64, 65, 77, 78 getLogger within the PC class and print some 
messages;
-> lines 59, 61 71, 74 -- None is passed to the constructor of _Consumer 
and _Producer;
-> lines 135, 203 -- children user logger;

With this code, I still get the exception.

On 11-12-09 07:23 PM, Antoine Pitrou wrote:
> Antoine Pitrou<pitrou@free.fr>  added the comment:
>
>> If I getLogger() in the child instead, example fails with the same trace.
> That sounds rather unlikely. Are you sure you don't store the logger in your process' __init__ method? The __init__ method is called in the parent and the process instance is transfered to the child when you call start() on the process.
>
> ----------
>
> _______________________________________
> Python tracker<report@bugs.python.org>
> <http://bugs.python.org/issue13569>
> _______________________________________
History
Date User Action Args
2011-12-10 00:55:33jangosetrecipients: + jango, pitrou
2011-12-10 00:55:33jangolinkissue13569 messages
2011-12-10 00:55:32jangocreate