Skip to content

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

Open
ZeroIntensity wants to merge 1 commit into
python:mainfrom
ZeroIntensity:ctypes/document-pointer-iteration
Open

ZeroIntensity wants to merge 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

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

Labels

awaiting core review docs Documentation in the Doc dir 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 skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant