[issue23096] Implementation-depended pickling floats with protocol 0

Serhiy Storchaka report at bugs.python.org
Sun Dec 21 09:10:33 CET 2014


New submission from Serhiy Storchaka:

Python and C implementations of pickle produce different results when pickle floats with protocol 0.

>>> pickle.dumps(4.2, 0)
b'F4.2000000000000002\n.'
>>> pickle._dumps(4.2, 0)
b'F4.2\n.'

----------
components: Library (Lib)
messages: 232992
nosy: alexandre.vassalotti, pitrou, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Implementation-depended pickling floats with protocol 0
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5

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


More information about the Python-bugs-list mailing list