-
Notifications
You must be signed in to change notification settings - Fork 126
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
max_results: float vs. int #123
Comments
You're right, it should be an integer. I think I was looking for some I'd gladly merge a PR! The library still needs an unbounded default. Treating negative- arxiv.Search(
query: str = "test",
max_results: int = -1 # Equivalent to the old float("inf") behavior.
) Good ticket — thanks for raising it, |
Cool. I'll get something to you. I think -1 will create a different issue, likely in this line: We can continue to the conversation on the PR. |
PR: #124 |
Closed by #138. |
Hello! Thanks for the neat library.
The max_results parameter on the Search object makes it appear that you want a float (to deal with inf). However, passing in an actual float, results in an error.
Here it is, exercised as a test:
https://gist.github.com/radoshi/a43862d438dc0d838d10b89ff0e0a564
I'm curious why you chose the float(inf) approach vs just hardcoding to max_results=300000
https://gist.github.com/radoshi/a9e3d0d9b947459c4ff96a46f6e35d55
Easy PR, happy to open it.
Thanks again for the lib.
The text was updated successfully, but these errors were encountered: