Skip to content
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

Limit length of strings evaluated by int() #157

Closed
aroberge opened this issue Sep 5, 2022 · 1 comment
Closed

Limit length of strings evaluated by int() #157

aroberge opened this issue Sep 5, 2022 · 1 comment

Comments

@aroberge
Copy link
Contributor

aroberge commented Sep 5, 2022

See python/cpython#95778

I often check if a string should have been an int. I should put a safety check of my own, in case it is used with python versions without this fix.

@aroberge aroberge changed the title Limit lenght of strings evaluated by int() Limit length of strings evaluated by int() Sep 5, 2022
@aroberge
Copy link
Contributor Author

aroberge commented Oct 1, 2022

Actually, there is no way to do this: to see if it is safe, it needs to be converted to a string, which is the problem in the first place.

@aroberge aroberge closed this as completed Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant