Always record the __module__ in newly created Python types

This commit is contained in:
Wenzel Jakob 2015-10-01 16:45:28 +02:00
parent 96c10530aa
commit 04358b02ed

View File

@ -521,7 +521,6 @@ public:
m_ptr = (PyObject *) type; m_ptr = (PyObject *) type;
/* Needed by pydoc */ /* Needed by pydoc */
if (((module &) scope).check())
attr("__module__") = scope_name; attr("__module__") = scope_name;
auto &type_info = detail::get_internals().registered_types[tinfo]; auto &type_info = detail::get_internals().registered_types[tinfo];