Skip to content

Commit

Permalink
avoid size limit when converting between strings and integers
Browse files Browse the repository at this point in the history
ValueError: Exceeds the limit (4300) for integer string conversion;
use sys.set_int_max_str_digits() to increase the limit
  • Loading branch information
plq committed Jan 11, 2023
1 parent eb3d6ac commit d5426d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyne/test/interop/server/_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def complex_return():

@srpc(_returns=Integer)
def huge_number():
return 2**int(1e5)
return 2**int(1e4)

@srpc(_returns=String)
def long_string():
Expand Down

0 comments on commit d5426d6

Please sign in to comment.