Skip to content

gh-92347: Document pitfalls of ctypes.pointer iteration - #157801

Merged
ZeroIntensity merged 1 commit into
python:mainfrom
ZeroIntensity:ctypes/document-pointer-iteration
Sep 21, 2026
Merged

ZeroIntensity merged 1 commit into
python:mainfrom
ZeroIntensity:ctypes/document-pointer-iteration

Conversation

@ZeroIntensity

@ZeroIntensity ZeroIntensity commented Sep 19, 2026

Copy link
Copy Markdown
Member

This could potentially be fixable if we determine that it's better to disallow all calls to iter() on a pointer object, but I concur with Jelle that such a fix should be treated as a feature; thus, we need to document this for older versions anyway.

@ZeroIntensity ZeroIntensity added needs backport to 3.13 bugs and security fixes needs backport to 3.14 bugs and security fixes needs backport to 3.15 pre-release feature fixes, bugs and security fixes labels Sep 19, 2026
@bedevere-app bedevere-app Bot added docs Documentation in the Doc dir skip news awaiting core review labels Sep 19, 2026
@github-project-automation github-project-automation Bot moved this to Todo in Docs PRs Sep 19, 2026
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #34651361 | 📁 Comparing 2bc86a8 against main (da72cc7)

  🔍 Preview build  

1 file changed
± library/ctypes.html

@ZeroIntensity
ZeroIntensity merged commit a3e389d into python:main Sep 21, 2026
43 checks passed
@ZeroIntensity
ZeroIntensity deleted the ctypes/document-pointer-iteration branch September 21, 2026 18:03
@miss-islington-app

Copy link
Copy Markdown

Thanks @ZeroIntensity for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15.
🐍🍒⛏🤖

@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Sep 21, 2026
@bedevere-app

bedevere-app Bot commented Sep 21, 2026

Copy link
Copy Markdown

GH-157925 is a backport of this pull request to the 3.15 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.15 pre-release feature fixes, bugs and security fixes label Sep 21, 2026
@bedevere-app

bedevere-app Bot commented Sep 21, 2026

Copy link
Copy Markdown

GH-157926 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Sep 21, 2026
@bedevere-app

bedevere-app Bot commented Sep 21, 2026

Copy link
Copy Markdown

GH-157927 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Sep 21, 2026
ZeroIntensity added a commit that referenced this pull request Sep 21, 2026
…157801) (GH-157927)

(cherry picked from commit a3e389d)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
ZeroIntensity added a commit that referenced this pull request Sep 21, 2026
…157801) (GH-157926)

(cherry picked from commit a3e389d)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant