This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Zack--
Recipients Zack--, eric.smith, ezio.melotti, pitrou, rhettinger
Date 2015-02-18.12:53:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1424264017.4.0.0999204598294.issue23473@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2015-02-18 12:53:37Zack--setrecipients: + Zack--, rhettinger, pitrou, eric.smith, ezio.melotti
2015-02-18 12:53:37Zack--setmessageid: <1424264017.4.0.0999204598294.issue23473@psf.upfronthosting.co.za>
2015-02-18 12:53:37Zack--linkissue23473 messages
2015-02-18 12:53:37Zack--create