-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
gh-137696: Rename 'fort' parameter to 'order' in PyBuffer_* functions #137866
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
Doc/c-api/buffer.rst
Outdated
| Copy contiguous *len* bytes from *buf* to *view*. | ||
| *fort* can be ``'C'`` or ``'F'`` (for C-style or Fortran-style ordering). | ||
| *order* can be ``'C'`` or ``'F'`` (for C-style or Fortran-style ordering). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment of the PyBuffer_FromContiguous explained the case when the order is A. So, I think we should add a line or two to explain that case in the documentation as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Documentation updated to include this case.
|
Please see #137696 (comment) and change the functions (declarations and definitions) as well as the documentation so that all of them use 'order' instead of a mix of all. In addition, please sign the CLA. |
Thanks for the review, @picnixz. The functions and documentation have been updated. |
|
Let's push this forward @CarlosEduR @picnixz |
Can you review it again, @picnixz? I just merged main into this branch again to keep it up to date. |
41630cc to
420cd1a
Compare
… 'order' to match its declaration. Update function comment to reflect new variable name as well.
…arameter to order
…ude case when order is 'A'
420cd1a to
6bdf5ab
Compare
This PR updates the
PyBuffer_FromContiguousfunction by renaming thefortparameter toorderfor clarity. The function's declaration in the header already usesorder; this change updates all references in the implementation and documentation to match.It also updates the declaration of the
PyBuffer_IsContiguousfunction in the header by renamingforttoorder. Its documentation and definition were already usingorderas the parameter name.ordernaming forPyBuffer_*functions #137696📚 Documentation preview 📚: https://cpython-previews--137866.org.readthedocs.build/