[issue29540] Add compact=True flag to json.dump/dumps

Ben Hoyt report at bugs.python.org
Tue Mar 14 13:06:54 EDT 2017


Ben Hoyt added the comment:

Agreed. Seems much the same as other argument constants,
like pickle.HIGHEST_PROTOCOL for the "protocol" argument. These are not
changing the API, just adding a helper constant to avoid the magic values.

-Ben

On Tue, Mar 14, 2017 at 12:24 PM, Brett Cannon <report at bugs.python.org>
wrote:

>
> Brett Cannon added the comment:
>
> I agree with David that I don't see how adding a constant to the module is
> really a complication of an API.
>
> ----------
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue29540>
> _______________________________________
>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29540>
_______________________________________


More information about the Python-bugs-list mailing list