Skip to content

Support keyword arguments in Python#37

Merged
RhysU merged 1 commit intomasterfrom
claude/add-keyword-args-support-azcXS
Jan 11, 2026
Merged

Support keyword arguments in Python#37
RhysU merged 1 commit intomasterfrom
claude/add-keyword-args-support-azcXS

Conversation

@RhysU
Copy link
Copy Markdown
Owner

@RhysU RhysU commented Jan 11, 2026

  • Using PyArg_ParseTupleAndKeywords now to allow keyword arguments
  • Enhanced test_ar.py to verify both positional and keyword argument calls produce identical results

- Modified ar_arsel() to use PyArg_ParseTupleAndKeywords instead of
  PyArg_ParseTuple, enabling keyword argument support
- Added kwlist array defining parameter names: data, submean, absrho,
  criterion, minorder, maxorder
- Updated method flags to include METH_KEYWORDS and added PyCFunction cast
- Enhanced test_ar.py to verify both positional and keyword argument calls
  produce identical results
- Added values_equal() helper function to properly compare values including
  NaN and infinity cases
@RhysU RhysU merged commit 74e5990 into master Jan 11, 2026
1 check passed
@RhysU RhysU deleted the claude/add-keyword-args-support-azcXS branch January 11, 2026 03:50
RhysU added a commit that referenced this pull request Jan 11, 2026
- Modified ar_arsel() to use PyArg_ParseTupleAndKeywords instead of
  PyArg_ParseTuple, enabling keyword argument support
- Added kwlist array defining parameter names: data, submean, absrho,
  criterion, minorder, maxorder
- Updated method flags to include METH_KEYWORDS and added PyCFunction cast
- Enhanced test_ar.py to verify both positional and keyword argument calls
  produce identical results
- Added values_equal() helper function to properly compare values including
  NaN and infinity cases

Co-authored-by: Claude <noreply@anthropic.com>
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