Serhiy Storchaka added the comment:

The idea LGTM. But we should first check that the logger is accessible by the 
name: getLogger(self.name) is self. The same is done when pickling classes, 
functions, etc. It shouldn't be a surprise on unpickler side.

And maybe use not getLogger(), but different method which should fail if the 
logger doesn't exist rather than creating it. Otherwise this looks as pickling 
open files by name.

----------
nosy: +serhiy.storchaka
stage:  -> needs patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30520>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to