GitHub - itamaro/embedded-python-demo-inittab · GitHub
Skip to content

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

Python C-API Embedding & Extending Example Using Inittab

export PYTHON_HOME="<path to a 3.15 cpython debug build>"
make clean && make && ./demo script.py

Hits an assertion due to . in the inittab module name:

Hello from embedded Python!
Assertion failed: (PyUnicode_FindChar(name, '.', 0, PyUnicode_GetLength(name), -1) == -1), function _Py_ext_module_loader_info_init_for_builtin, file importdl.c, line 178.
[1]    9934 abort      ./demo script.py

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages