[issue15616] logging.FileHandler not correctly created with PyYaml (unpickling problems?)

Vinay Sajip report at bugs.python.org
Fri Aug 10 23:33:10 CEST 2012


Vinay Sajip added the comment:

You've only shown that the YAML loading produces the correct results on 2.6.

Logging changed from old-style classes in 2.6 to new-style classes in 2.7. This may be what is causing PyYAML a problem, but AFAICT PyYAML should work with new-style classes. Perhaps you need to invoke it differently for new-style classes?

Logging doesn't do anything special related to pickling, except that it takes care not to send objects which can't be pickled across the network (which is not relevant here).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15616>
_______________________________________


More information about the Python-bugs-list mailing list