diff -r 81a94a745fe9 Python/pystrtod.c --- a/Python/pystrtod.c Wed Jun 15 02:24:54 2016 -0300 +++ b/Python/pystrtod.c Wed Jun 15 06:39:34 2016 -0300 @@ -353,15 +353,15 @@ else if (!endptr && (fail_pos == s || *fail_pos != '\0')) PyErr_Format(PyExc_ValueError, "could not convert string to float: " - "%.200s", s); + "'%.200s'", s); else if (fail_pos == s) PyErr_Format(PyExc_ValueError, "could not convert string to float: " - "%.200s", s); + "'%.200s'", s); else if (errno == ERANGE && fabs(x) >= 1.0 && overflow_exception) PyErr_Format(overflow_exception, "value too large to convert to float: " - "%.200s", s); + "'%.200s'", s); else result = x;