File: module.c

package info (click to toggle)
python-jedi 0.19.1%2Bds1-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,680 kB
  • sloc: python: 28,783; makefile: 172; ansic: 13
file content (15 lines) | stat: -rw-r--r-- 294 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "Python.h"

static struct PyModuleDef module = {
   PyModuleDef_HEAD_INIT,
   "init_extension_module",
   NULL,
   -1,
   NULL
};

PyMODINIT_FUNC PyInit_init_extension_module(void){
    PyObject *m = PyModule_Create(&module);
    PyModule_AddObject(m, "foo", Py_None);
    return m;
}