Labels: Type-Defect Priority-Medium
New issue 11 by george.sakkis: Pickler._flatten_obj_instance returns None
for some objects
_flatten_obj_instance() falls through and returns None if an object doesn't
have __dict__ or __slots__, e.g. file and threading.Lock objects.
Fix is easy, just add a "return data" at the end of the method. A more
general approach is to not rely on __dict__ or __slots__ but on (a subset
of) the attributes returned by dir(obj).
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at: