New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add get_int_max_str_digits
and set_int_max_str_digits
in sys
.
#5014
Add get_int_max_str_digits
and set_int_max_str_digits
in sys
.
#5014
Conversation
@DimitrisJim do you know if it has related tests? |
oh it definitely did, that's how I remember finding it. shame I didn't mention anything in the in the issue, I'll look into it. What on earth is going on with this Mac runner though |
Don't worry about CI failure. I fixed it here https://github.com/RustPython/RustPython/pull/5012/files#diff-575a2149c1bf435cd04009918dec66fd8fa2be92cf7d5fdcdb48ceb61d3ad4aaR11 |
Thanks for this @dannasman. These are currently tested indirectly in Could you by any chance add an additional test in Also please rebase so we can get the most recent changes that fix that CI annoyance. |
…getset_int_max_str_digits
Sure |
I am having trouble running Also, is this the correct way of testing whether with assert_raises(ValueError):
sys.set_int_max_str_digits(1) |
Hey, so yeah if you run it with
Yup! That looks right to me. |
Jesus Christ Mac started using |
No problem! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks so much @dannasman, lgtm
Hi!
Here is a solution proposal for issue #5010.