MCPcopy Create free account
hub / github.com/pybind/pybind11 / module_

Function module_

include/pybind11/pybind11.h:1596–1598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1594 /// Create a new top-level Python module with the given name and docstring
1595 PYBIND11_DEPRECATED("Use PYBIND11_MODULE or module_::create_extension_module instead")
1596 explicit module_(const char *name, const char *doc = nullptr) {
1597 *this = create_extension_module(name, doc, new PyModuleDef());
1598 }
1599
1600 /** \rst
1601 Create Python binding for a new function within the module scope. ``Func``

Callers

nothing calls this directly

Calls 1

create_extension_moduleFunction · 0.85

Tested by

no test coverage detected