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 pitrou
Recipients pitrou, vinay.sajip
Date 2017-05-31.07:50:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1496217048.71.0.370871054359.issue30520@psf.upfronthosting.co.za>
In-reply-to
Content
Loggers could simply be pickled and unpickled by name, but pickle currently tries the hard way:

>>> import pickle
>>> import logging
>>> log = logging.getLogger('foo')
>>> pickle.dumps(log)
Traceback (most recent call last):
  File "<ipython-input-4-6ecead831873>", line 1, in <module>
    pickle.dumps(log)
TypeError: can't pickle _thread.RLock objects
History
Date User Action Args
2017-05-31 07:50:48pitrousetrecipients: + pitrou, vinay.sajip
2017-05-31 07:50:48pitrousetmessageid: <1496217048.71.0.370871054359.issue30520@psf.upfronthosting.co.za>
2017-05-31 07:50:48pitroulinkissue30520 messages
2017-05-31 07:50:48pitroucreate