lukasschwab / arxiv.py

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

Add `__eq__` methods to result classes #63

Closed lukasschwab closed 3 years ago

lukasschwab commented 3 years ago

Motivation

A clear and concise description of what the problem is. For example, "I'm always frustrated when..."

Makes it easier to find papers that match certain properties among results, esp. to look up by author.

Solution

A clear and concise description of what you want to happen.

Implement __eq__: take the naive approach and compare author names.

Considered alternatives

A clear and concise description of any alternative solutions or features you've considered.

Could try to fuzzy-match on author names to try to handle initials, but that seems noisy.

Additional context

Add any other context about the feature request here.

Came up while looking into https://github.com/EPS-Libraries-Berkeley/volt/issues/161.