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 poq
Recipients ezio.melotti, pitrou, poq, rhettinger
Date 2011-08-18.16:35:01
SpamBayes Score 3.707743e-05
Marked as misclassified No
Message-id <1313685301.93.0.0781202777777.issue12778@psf.upfronthosting.co.za>
In-reply-to
Content
I think this is because dumps() uses the C encoder. Making the C encoder incremental (i.e. iterator-based) like the Python encoder would solve this.

I actually looked into doing this for issue #12134, but it didn't seem so simple; Since C has no yield, I think the iterator would need to maintain its own stack to keep track of where it is in the object tree it's encoding...

If there is interest though, I may be able to write a patch when I have some time off again...
History
Date User Action Args
2011-08-18 16:35:02poqsetrecipients: + poq, rhettinger, pitrou, ezio.melotti
2011-08-18 16:35:01poqsetmessageid: <1313685301.93.0.0781202777777.issue12778@psf.upfronthosting.co.za>
2011-08-18 16:35:01poqlinkissue12778 messages
2011-08-18 16:35:01poqcreate