Stefan Krah added the comment: PyType_GenericNew() should be in libpython, so indeed the example in the docs seems a bit odd to me. ---------- nosy: +skrah _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue31443> _______________________________________