Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7610599 commit efb087bCopy full SHA for efb087b
1 file changed
Python/compile.c
@@ -422,7 +422,8 @@ parsenumber(s)
422
x = strtol(s, &end, 0);
423
if (*end == '\0') {
424
if (errno != 0) {
425
- err_setstr(RuntimeError, "integer constant too large");
+ err_setstr(OverflowError,
426
+ "integer constant too large");
427
return NULL;
428
}
429
return newintobject(x);
@@ -431,12 +432,12 @@ parsenumber(s)
431
432
xx = strtod(s, &end);
433
434
- err_setstr(RuntimeError, "float constant too large");
435
+ err_setstr(OverflowError, "float constant too large");
436
437
438
return newfloatobject(xx);
439
- err_setstr(RuntimeError, "bad number syntax");
440
+ err_setstr(SystemError, "bad number syntax?!?!");
441
442
443
0 commit comments