New submission from Javen O'Neal:

Currently json.dump, json.dumps, and json.JSONEncoder do not support writing 
iterator objects. Users can choose to pass the iterator to a tuple and write 
that as a json array, but this is wasteful if the iterator is large, requiring 
a large amount of memory to be temporarily allocated for the tuple prior to 
json encoding.

The json module also does not support writing sets, frozensets, or bytearrays.

----------
components: Library (Lib)
messages: 299981
nosy: javenoneal
priority: normal
pull_requests: 3069
severity: normal
status: open
title: Encode set, frozenset, bytearray, and iterators as json arrays
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue31155>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to