Staging
v0.5.1
v0.5.1
https://github.com/python/cpython
Revision 36619e1bc49d2e5dbfc86a9f0a54f478fe4a8c2b authored by Miss Islington (bot) on 18 November 2020, 23:23:49 UTC, committed by GitHub on 18 November 2020, 23:23:49 UTC
(cherry picked from commit 803187796f06bdc47ae74ce3d28c443e8cc2a27f) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> Automerge-Triggered-By: GH:JulienPalard
1 parent f9fa920
Tip revision: 36619e1bc49d2e5dbfc86a9f0a54f478fe4a8c2b authored by Miss Islington (bot) on 18 November 2020, 23:23:49 UTC
[3.9] Minor grammar edits for the descriptor howto guide (GH-GH-23175) (GH-23176)
[3.9] Minor grammar edits for the descriptor howto guide (GH-GH-23175) (GH-23176)
Tip revision: 36619e1
_testimportmultiple.c
/*
* C extensions module to test importing multiple modules from one compiled
* file (issue16421). This file defines 3 modules (_testimportmodule,
* foo, bar), only the first one is called the same as the compiled file.
*/
#include<Python.h>
static struct PyModuleDef _testimportmultiple = {
PyModuleDef_HEAD_INIT,
"_testimportmultiple",
"_testimportmultiple doc",
-1,
NULL,
NULL,
NULL,
NULL,
NULL
};
PyMODINIT_FUNC PyInit__testimportmultiple(void)
{
return PyModule_Create(&_testimportmultiple);
}
static struct PyModuleDef _foomodule = {
PyModuleDef_HEAD_INIT,
"_testimportmultiple_foo",
"_testimportmultiple_foo doc",
-1,
NULL,
NULL,
NULL,
NULL,
NULL
};
PyMODINIT_FUNC PyInit__testimportmultiple_foo(void)
{
return PyModule_Create(&_foomodule);
}
static struct PyModuleDef _barmodule = {
PyModuleDef_HEAD_INIT,
"_testimportmultiple_bar",
"_testimportmultiple_bar doc",
-1,
NULL,
NULL,
NULL,
NULL,
NULL
};
PyMODINIT_FUNC PyInit__testimportmultiple_bar(void){
return PyModule_Create(&_barmodule);
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...