[issue5589] Wrong dump of floats
New submission from Sebastian Billaudelle st...@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]) '[0.10001]' 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 rep...@bugs.python.org http://bugs.python.org/issue5589 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5589] Wrong dump of floats
Ezio Melotti ezio.melo...@gmail.com added the comment: .1 0.10001 Read http://docs.python.org/tutorial/floatingpoint.html -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5589 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5589] Wrong dump of floats
R. David Murray rdmur...@bitdance.com added the comment: As Ezio points out, this is correct Python behavior. -- components: +Interpreter Core -Library (Lib) nosy: +bitdancer resolution: - invalid stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5589 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5589] Wrong dump of floats
Changes by Benjamin Peterson benja...@python.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5589 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com