forwarded 1020085 https://github.com/berkerpeksag/astor/issues/212 thanks
On Sat, 17 Sept 2022 at 23:45, Lucas Nussbaum <lu...@debian.org> wrote: > > p = <[ValueError('Exceeds the limit (4300) for integer string conversion') > > raised in repr()] int object at 0x556a03b67200> > > imaginary = False > > > > def part(p, imaginary): > > # Represent infinity as 1e1000 and NaN as 1e1000-1e1000. > > s = 'j' if imaginary else '' > > try: > > if math.isinf(p): > > if p < 0: > > return '-1e1000' + s > > return '1e1000' + s > > if math.isnan(p): > > return '(1e1000%s-1e1000%s)' % (s, s) > > except OverflowError: > > # math.isinf will raise this when given an integer > > # that's too large to convert to a float. > > pass > > > return repr(p) + s > > E ValueError: Exceeds the limit (4300) for integer string conversion Looks like this is known upstream (see forwarded URL above), but there isn't a fix yet. :( ♥, - Tianon 4096R / B42F 6819 007F 00F8 8E36 4FD4 036A 9C25 BF35 7DD4