Skip to content

Refactor Rules part 2#1867

Merged
rocky merged 1 commit into
masterfrom
Rule-refactor-part2
Jul 20, 2026
Merged

Refactor Rules part 2#1867
rocky merged 1 commit into
masterfrom
Rule-refactor-part2

Conversation

@rocky

@rocky rocky commented Jul 20, 2026

Copy link
Copy Markdown
Member

More Python linting around Rules.

Better document the weirdnesses around our Python Rules code.

@rocky
rocky force-pushed the Rule-refactor-part2 branch 3 times, most recently from 813fe18 to cab693e Compare July 20, 2026 14:17
Comment thread mathics/builtin/patterns/rules.py


class Association(Builtin):
class Association_(Builtin):

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the next PR there will be a mathics.core.atoms.association.Association class. I thought I had stashed away the changes, but this one bleeds through.

@rocky
rocky force-pushed the Rule-refactor-part2 branch from cab693e to 61e7b9c Compare July 20, 2026 14:40
@rocky

rocky commented Jul 20, 2026

Copy link
Copy Markdown
Member Author

After this PR, I'll move on to Association. Then I'll come back and make another round in Rules, if for no other reason, to remove the evaluation parameter on BaseRule objects.

@mmatera mmatera left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rocky
rocky merged commit 5670836 into master Jul 20, 2026
18 checks passed
@rocky
rocky deleted the Rule-refactor-part2 branch July 20, 2026 15:14
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.

2 participants