Issue 11 in jsonpickle: Pickler._flatten_obj_instance returns None for some objects

6 views
Skip to first unread message

jsonp...@googlecode.com

unread,
Dec 6, 2009, 7:34:59 PM12/6/09
to jsonp...@googlegroups.com
Status: New
Owner: john.paulett
Labels: Type-Defect Priority-Medium

New issue 11 by george.sakkis: Pickler._flatten_obj_instance returns None
for some objects
http://code.google.com/p/jsonpickle/issues/detail?id=11

_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:
http://code.google.com/hosting/settings

jsonp...@googlecode.com

unread,
Dec 12, 2009, 6:40:27 PM12/12/09
to jsonp...@googlegroups.com
Updates:
Status: Done

Comment #1 on issue 11 by davvid: Pickler._flatten_obj_instance returns
This issue has moved to github:
http://github.com/jsonpickle/jsonpickle/issues#issue/3
Reply all
Reply to author
Forward
0 new messages