Serhiy Storchaka added the comment: What is the output of `struct.pack('d', 2.0)` and `struct.pack('d', float(2))`? ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue26743> _______________________________________