lukasschwab / arxiv.py

Python wrapper for the arXiv API
MIT License
1.11k stars 123 forks source link

Improve `max_results`/`delay_seconds` types, defaults #138

Closed lukasschwab closed 1 year ago

lukasschwab commented 1 year ago

Description

Major refactor of Client.results. It's a matter of taste, but the code is much simpler: use itertools to enforce max_results rather than varying page size.

Breaking changes

List any changes that break the API usage supported on master.

None. Search constructor retains backwards compatibility for float('inf'); other floats were effectively unsupported (broken).

Relevant issues

List GitHub issues relevant to this change.

Checklist