Serhiy Storchaka added the comment: Python implementation uses repr(value) and C implementation uses '%.17g' % value. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue23096> _______________________________________