Skip to content

Doc: Clarify ctypes character pointer value types#149973

Open
savagemechanic wants to merge 1 commit into
python:mainfrom
savagemechanic:docs-ctypes-character-pointer-types
Open

Doc: Clarify ctypes character pointer value types#149973
savagemechanic wants to merge 1 commit into
python:mainfrom
savagemechanic:docs-ctypes-character-pointer-types

Conversation

@savagemechanic
Copy link
Copy Markdown
Contributor

@savagemechanic savagemechanic commented May 18, 2026

Docs-only change.

Clarifies ctypes character value and character pointer value types:

  • c_char and c_char_p are bytes-oriented.
  • c_wchar and c_wchar_p are str-oriented.

Local checks:

python3 - <<'PY'
import ctypes
# Checked c_char, c_wchar, c_char_p, c_wchar_p, and c_char_p/c_wchar_p restype behavior.
PY
make -C Doc check SPHINXOPTS='-W --keep-going'

@read-the-docs-community
Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #32729269 | 📁 Comparing d3853ec against main (acefff9)

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

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant