Zack added the comment: >From memory, something along the lines of
from json import JSONEncoder class ExtendedJSONEncoder(JSONEncoder): def _iterencode(self, o, markers=None): if isinstance(o, tuple) and hasattr(obj, '_fields'): gen = self._iterencode_dict(o.__dict__, markers) else: gen = JSONEncoder._iterencode(self, o, markers) for chunk in gen: yield chunk ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23473> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com