Skip to content

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
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