[New-bugs-announce] [issue31466] No easy way to change float formatting when subclassing encoder.JSONEncoder
report at bugs.python.org
Thu Sep 14 05:48:13 EDT 2017
New submission from Quentin Peter:
I want to output floats in ENG format. Working with distance in micrometers, it is a bit annoying to see:
The solution I found was to redefine `iterencode` but that doesn't feel right.
I would like to see something similar to the "default" function that is easely modified.
title: No easy way to change float formatting when subclassing encoder.JSONEncoder
versions: Python 3.6
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce