File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -346,7 +346,7 @@ Importing Modules
346346 the same as for :c:func:`PyImport_AppendInittab`.
347347
348348 On success, create and return a module object.
349- This module will not be initialized; call :c:func:`PyModule_Exec`
349+ This module will not be initialized; call :c:func:`! PyModule_Exec`
350350 to initialize it.
351351 (Custom importers should do this in their
352352 :py:meth: `~importlib.abc.Loader.exec_module ` method.)
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ PyAPI_FUNC(int) PyImport_ExtendInittab(struct _inittab *newtab);
1515// without needing to go through inittab
1616PyAPI_FUNC (PyObject * ) PyImport_CreateModuleFromInitfunc (
1717 PyObject * spec ,
18- PyObject * (* initfunc )(void ));
18+ PyObject * (* initfunc )(void ));
1919
2020struct _frozen {
2121 const char * name ; /* ASCII encoded string */
Original file line number Diff line number Diff line change 11Add a new :c:func: `PyImport_CreateModuleFromInitfunc ` C-API for creating a
2- module from a ** spec ** and ** initfunc * *. Patch by Itamar Oren.
2+ module from a *spec * and *initfunc *. Patch by Itamar Oren.
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ static PyModuleDef embedded_ext = {
166166static PyObject *
167167PyInit_embedded_ext (void )
168168{
169- // keep this a single-phase initialization module;
169+ // keep this as a single-phase initialization module;
170170 // see test_create_module_from_initfunc
171171 return PyModule_Create (& embedded_ext );
172172}
Original file line number Diff line number Diff line change @@ -2445,7 +2445,7 @@ create_builtin(
24452445
24462446PyObject *
24472447PyImport_CreateModuleFromInitfunc (
2448- PyObject * spec , PyObject * (* initfunc )(void ))
2448+ PyObject * spec , PyObject * (* initfunc )(void ))
24492449{
24502450 if (initfunc == NULL ) {
24512451 PyErr_BadInternalCall ();
You can’t perform that action at this time.
0 commit comments