Message294818
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 |
|
| Date |
User |
Action |
Args |
| 2017-05-31 07:50:48 | pitrou | set | recipients:
+ pitrou, vinay.sajip |
| 2017-05-31 07:50:48 | pitrou | set | messageid: <[email protected]> |
| 2017-05-31 07:50:48 | pitrou | link | issue30520 messages |
| 2017-05-31 07:50:48 | pitrou | create | |
|