[issue13569] Loggers cannot be pickled

2011-12-11 Thread Vinay Sajip
Vinay Sajip added the comment: So, if I understand your last comment correctly, it's OK to close this issue, so I'm going to. If I misunderstood, then please feel free to reopen. -- resolution: -> invalid status: open -> closed ___ Python tracker

[issue13569] Loggers cannot be pickled

2011-12-10 Thread Nikita Pchelin
Nikita Pchelin added the comment: Here is a link for example in question: https://github.com/jango/calculon/blob/master/calculon/calculon.py Previously, I would pass logger instance from Calculon class to _Producer and _Consumer classes. In the current revision, I removed the logging complete

[issue13569] Loggers cannot be pickled

2011-12-10 Thread Vinay Sajip
Vinay Sajip added the comment: You shouldn't need to pickle loggers, because loggers just represent where in your application something happens (that being determined by the logger name). The logger name is just a string, and if you need to communicate that across e.g. a process boundary, jus

[issue13569] Loggers cannot be pickled

2011-12-10 Thread Nikita Pchelin
Nikita Pchelin added the comment: Fair enough. Thanks for help with investigating this issue! -- ___ Python tracker ___ ___ Python-bu

[issue13569] Loggers cannot be pickled

2011-12-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > One thing, however, that this would mean > that I would have to declare logger in any method outside of __init__, > like in shutdown() for example. If you only use the logger from the child process, you can declare and store it in the run() method. That