parse() throws OverflowError for large integers
Bug #1285789 reported by
Nicholas Chammas
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dateutil |
New
|
Undecided
|
Unassigned |
Bug Description
>>> parse('
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
return DEFAULTPARSER.
File "/usr/lib/
ret = default.
OverflowError: signed integer is greater than maximum
I expect a ValueError in this case, not an OverflowError.
Interestingly, Python can handle the integer as an int without issues.
>>> type(1812916862
<type 'int'>
To post a comment you must log in.
I think so too. Still getting this in 2018 and python 3 with the latest anaconda distribution