]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-134160: "First extension module" tutorial improvements (GH-144183)
authorPetr Viktorin <encukou@gmail.com>
Mon, 2 Feb 2026 14:32:25 +0000 (15:32 +0100)
committerGitHub <noreply@github.com>
Mon, 2 Feb 2026 14:32:25 +0000 (15:32 +0100)
commitafc2aeb85026173d1daf33f323f0070c9e75def2
treece09c3ffd64f444e2cd5e3dfc8b45d4a464811da
parentebbb2ca81f8a33d8b9a5d94f1c4f99a32ee0f427
gh-134160: "First extension module" tutorial improvements (GH-144183)

- Pass -v to pip, so compiler output is visible
- Move the call ``spam.system(3)`` up so that error handling is tested
  right after it's added
- Use `PyUnicode_AsUTF8AndSize` as `PyUnicode_AsUTF8` is not in the
  Limited API.
- Add a footnote about embedded NULs.
Doc/extending/first-extension-module.rst
Doc/includes/capi-extension/spammodule-01.c