-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
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
… 'order' to match its declaration. Update function comment to reflect new variable name as well.
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. |
…arameter to order
…ude case when order is 'A'
Thanks for the review, @picnixz. The functions and documentation have been updated. |
This PR updates the
PyBuffer_FromContiguous
function by renaming thefort
parameter toorder
for 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_IsContiguous
function in the header by renamingfort
toorder
. Its documentation and definition were already usingorder
as the parameter name.order
naming forPyBuffer_*
functions #137696📚 Documentation preview 📚: https://cpython-previews--137866.org.readthedocs.build/