MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _cffi_py_initialize

Function _cffi_py_initialize

pager_lib/cffi/_embedding.h:125–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123PyMODINIT_FUNC _CFFI_PYTHON_STARTUP_FUNC(void); /* forward */
124
125static void _cffi_py_initialize(void)
126{
127 /* XXX use initsigs=0, which "skips initialization registration of
128 signal handlers, which might be useful when Python is
129 embedded" according to the Python docs. But review and think
130 if it should be a user-controllable setting.
131
132 XXX we should also give a way to write errors to a buffer
133 instead of to stderr.
134
135 XXX if importing 'site' fails, CPython (any version) calls
136 exit(). Should we try to work around this behavior here?
137 */
138 Py_InitializeEx(0);
139}
140
141static int _cffi_initialize_python(void)
142{

Callers 1

_cffi_carefully_make_gilFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected