Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4fa7504e
Commit
4fa7504e
authored
May 17, 2019
by
Pedro Lacerda
Committed by
Cheryl Sabella
May 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-27268: Fix incorrect error message on float('') (GH-2745)
parent
871ff77c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Python/pystrtod.c
Python/pystrtod.c
+3
-3
No files found.
Python/pystrtod.c
View file @
4fa7504e
...
...
@@ -353,15 +353,15 @@ PyOS_string_to_double(const char *s,
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment