diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-04-10 16:19:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-10 16:19:11 (GMT) |
commit | 3a3c0464bd719a8cac6e52b02a3479b2834b88a4 (patch) | |
tree | 465c1391464328ad94d1c8a8c9f05edb87d2a6cf /Doc | |
parent | 291d38d6e92ff6a665ea9b095f9d816ae42a1249 (diff) | |
download | cpython-3a3c0464bd719a8cac6e52b02a3479b2834b88a4.zip cpython-3a3c0464bd719a8cac6e52b02a3479b2834b88a4.tar.gz cpython-3a3c0464bd719a8cac6e52b02a3479b2834b88a4.tar.bz2 |
bpo-43739: Add type declaration Doc/extending/extending.rst example (GH-25332)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/extending/extending.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/extending/extending.rst b/Doc/extending/extending.rst index 25dc293..bc85a05 100644 --- a/Doc/extending/extending.rst +++ b/Doc/extending/extending.rst @@ -410,7 +410,7 @@ optionally followed by an import of the module:: /* Optionally import the module; alternatively, import can be deferred until the embedded script imports it. */ - pmodule = PyImport_ImportModule("spam"); + PyObject *pmodule = PyImport_ImportModule("spam"); if (!pmodule) { PyErr_Print(); fprintf(stderr, "Error: could not import module 'spam'\n"); |