Skip to content

internal: fix new contiguous-slice accessor - #6409

Merged
davidhewitt merged 1 commit into
PyO3:mainfrom
davidhewitt:contig-slice
Sep 14, 2026
Merged

davidhewitt merged 1 commit into
PyO3:mainfrom
davidhewitt:contig-slice

Conversation

@davidhewitt

Copy link
Copy Markdown
Member

New PyBuffer accessor added in #6382 had the condition accidentally inverted so would return None on contiguous memory and vice versa.

Corrected the logic and added tests. Sorry for letting this through; I should have caught this in review. cc @Person-93

Credit to Codex security scanning for the catch!

@davidhewitt davidhewitt changed the title fix new contiguous-slice accessor internal: fix new contiguous-slice accessor Sep 14, 2026
@davidhewitt
davidhewitt added this pull request to the merge queue Sep 14, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 14, 2026
@davidhewitt
davidhewitt added this pull request to the merge queue Sep 14, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 14, 2026
@davidhewitt
davidhewitt added this pull request to the merge queue Sep 14, 2026
Merged via the queue into PyO3:main with commit 9b41992 Sep 14, 2026
53 of 54 checks passed
@davidhewitt
davidhewitt deleted the contig-slice branch September 14, 2026 21:52
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.

3 participants