[New-bugs-announce] [issue5589] Wrong dump of floats

Sebastian Billaudelle report at bugs.python.org
Sat Mar 28 19:58:36 CET 2009

New submission from Sebastian Billaudelle <stein at cream-project.org>:

Hi there,

I just recognized a weird behaviour of the json module...

Dumpig a float like 0.1 I get some crazy output.

Here is an example:

>>> import json
>>> json.dumps([.1])

Very simple to reproduce;)

- Sebastian

components: Library (Lib)
messages: 84323
nosy: stein
severity: normal
status: open
title: Wrong dump of floats
type: behavior
versions: Python 2.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list