File "astor/rtrip.py", line 209, in <module>
convert(fname, readonly=readonly or dumpall, dumpall=dumpall)
File "astor/rtrip.py", line 83, in convert
dsttxt = to_source(srcast)
File "astor/code_gen.py", line 52, in to_source
generator.visit(node)
File "astor/node_util.py", line 143, in visit
return visitor(node)
File "astor/code_gen.py", line 802, in visit_Module
self.write(*node.body)
File "astor/code_gen.py", line 168, in write
visit(item)
File "astor/node_util.py", line 143, in visit
return visitor(node)
File "astor/code_gen.py", line 278, in visit_Assign
self.visit(node.value)
File "astor/node_util.py", line 143, in visit
return visitor(node)
File "astor/code_gen.py", line 627, in visit_Num
real = part(x.real if isinstance(x, complex) else x, imaginary=False)
File "astor/code_gen.py", line 619, in part
if math.isinf(p):
OverflowError: int too large to convert to float
rtrip on file (valid Python 3.6)
gives