mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
bpo-43739: Add type declaration Doc/extending/extending.rst example
This commit is contained in:
parent
dccdc500f9
commit
ea9b2d6319
2 changed files with 2 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue