[issue14573] json iterencode can not handle general iterators
Alfred Morgan
report at bugs.python.org
Thu Oct 2 08:46:10 CEST 2014
Alfred Morgan added the comment:
Need a patch? Here you go.
https://github.com/Zectbumo/cpython/compare/master
How to use it:
encoder = JSONEncoder(stream=True)
This will iterencode() iterators as lists and file objects as strings and stream them when constructed with stream=True.
----------
nosy: +Zectbumo
versions: +Python 3.5 -Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14573>
_______________________________________
More information about the Python-bugs-list
mailing list