[New-bugs-announce] [issue31155] Encode set, frozenset, bytearray, and iterators as json arrays

Javen O'Neal report at bugs.python.org
Wed Aug 9 05:23:16 EDT 2017


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 <report at bugs.python.org>
<http://bugs.python.org/issue31155>
_______________________________________


More information about the New-bugs-announce mailing list