KeyReferenceToPersistent.__cmp__ should be replaced
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3
- Forks
- 0
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 3
Description
KeyReferenceToPersistent.__cmp__ should be replaced by KeyReferenceToPersistent.__eq__ + KeyReferenceToPersistent.__lt__ + @functools.total_ordering to properly work on Python 3.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate KeyReferenceToPersistent and inspect its existing cmp behavior and callers. Replace the comparison approach with eq, lt, and functools.total_ordering, then verify that comparisons work correctly on Python 3.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100