Skip to content

Arg checking for mathics.builtin.intfns.combinatorial#1695

Merged
rocky merged 1 commit intomasterfrom
more-args-checking-for-combinatorial
Feb 13, 2026
Merged

Arg checking for mathics.builtin.intfns.combinatorial#1695
rocky merged 1 commit intomasterfrom
more-args-checking-for-combinatorial

Conversation

@rocky
Copy link
Member

@rocky rocky commented Feb 12, 2026

Finish argument checking for built-in functions in mathics.builtin.intfns.combinatorial.

@rocky rocky changed the title Arg checking for builtin.intfns.combinatorial Arg checking for mathics.builtin.intfns.combinatorial Feb 12, 2026
"""

attributes = A_LISTABLE | A_NUMERIC_FUNCTION | A_PROTECTED | A_READ_PROTECTED
eval_error = Builtin.generic_argument_error
Copy link
Member Author

@rocky rocky Feb 12, 2026

Choose a reason for hiding this comment

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

Side note. I considered adding eval_error in the class this is in, here SymPyFunction.

However, for that to work, because (I think) there are default values, we would have to correct all functions in the class to have their proper number of arguments listed.

So DRYing this is left until all functions have been revised to include their argument check values.

@rocky rocky requested a review from mmatera February 12, 2026 12:07
@mmatera
Copy link
Contributor

mmatera commented Feb 13, 2026

LGTM

@rocky rocky merged commit 0f15a3d into master Feb 13, 2026
21 checks passed
@rocky rocky deleted the more-args-checking-for-combinatorial branch February 13, 2026 15:30
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

Comments