Skip to content

Fix incorrect and missing docstrings in pybuffer.h#152118

Open
AivazianArtur wants to merge 2 commits into
python:mainfrom
AivazianArtur:pybuffer_contiguous_methods_descr
Open

Fix incorrect and missing docstrings in pybuffer.h#152118
AivazianArtur wants to merge 2 commits into
python:mainfrom
AivazianArtur:pybuffer_contiguous_methods_descr

Conversation

@AivazianArtur

Copy link
Copy Markdown

First of all this is a fix of docstring of PyBuffer_IsContiguous declaration - there were something about copying, not checking;
Then there are docstrings for other contiguous-related functions - PyBuffer_ToContiguous and PyBuffer_FromContiguous. I copypasted it straight from the descriptions of those methods in buffers.rst, but adapted a bit for docstring format and for them to be consistent with other docstrings in these file

@bedevere-app

bedevere-app Bot commented Jun 24, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@python-cla-bot

python-cla-bot Bot commented Jun 24, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@AivazianArtur

Copy link
Copy Markdown
Author

Looks like something like typo, so no need for an issue

@bedevere-app

bedevere-app Bot commented Jun 24, 2026

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant