2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-22 05:22:45 +00:00

added support for sharing of extension_classes across modules

[SVN r8399]
This commit is contained in:
Ullrich Köthe
2000-12-08 00:06:18 +00:00
parent c1e69eecff
commit 922525faa0
11 changed files with 1324 additions and 13 deletions

View File

@@ -30,7 +30,7 @@ module_builder::module_builder(const char* name)
: m_module(Py_InitModule(const_cast<char*>(name), initial_methods))
{
// If this fails, you've created more than 1 module_builder object in your module
assert(name_holder.get() == 0);
// assert(name_holder.get() == 0);
name_holder = ref(PyObject_GetAttrString(m_module, const_cast<char*>("__name__")));
}