Kaydet (Commit) 15641925 authored tarafından Georg Brandl's avatar Georg Brandl

Fix advice: call PyType_Ready to fill in ob_type of custom types.

üst fcf3a0c5
......@@ -179,8 +179,8 @@ constant". This shows up when building DLL under MSVC. Change it to::
and add the following to the module initialization function::
MyObject_Type.ob_type = &PyType_Type;
if (PyType_Ready(&MyObject_Type) < 0)
return NULL;
.. _dynamic-linking:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment