Skip to content

Fix RationalFunction subtraction operator dispatch - #245

Open
chessing234 wants to merge 1 commit into
teorth:mainfrom
chessing234:codex/expdb-subtraction
Open

chessing234 wants to merge 1 commit into
teorth:mainfrom
chessing234:codex/expdb-subtraction

Conversation

@chessing234

Copy link
Copy Markdown
Contributor

RationalFunction.__sub__ calls self.sub, but the implemented method is named subtract. Consequently f - g raises AttributeError for rational functions and numeric operands. Dispatch to subtract and register a regression covering rational-function, integer, and fractional operands plus self-subtraction.

Validation: the new regression fails on current upstream c8eda5e4f1f51024b6cbf70c7bef6c33da74c691 with the missing-method error. The patched full Python test runner (python tests/test_all.py) passes.

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

Successfully merging this pull request may close these issues.

1 participant