Davin Potts added the comment: Simon: You do have a lock object inside the logging handler object. That is what prevents your pickling of the logging handler object.
The background information Serhiy shared is focused on why pickling a _thread.RLock object is problematic and unsupportable. I do not know enough to understand how you implemented your code that worked under 3.5 but one of the points made by Serhiy's comments is that your code worked _in spite_ of the fact that you did not have a proper RLock inside your logging handler. I optimistically believe you can implement what you need to work without needing to pickle a logging handler object. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29168> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com