I was exploring Python.NET API, and while lookingPyType class, I found a constructor that accepts aTypeSpec . So, I got curious and peeked the definition ofTypeSpec , and I found theconstructor. I can fill every argument of the constructor,except thebasicSize parameter. I'm not so used to dealing with the C API of Python directly, so I searxhed and apparently the basic size is thePyObject_HEAD size + fields that the type supports it. So I tried to find references toTypeSpec in Python.NET code andthe only references I found are in theNativeTypeSpec constructor, insideTypeManager code and inside atest . All of these references I linked here are internal parts of Python.NET and/or uses internal functionality (example: reading type offsets and marshalling from string toStrPtr ). Now my question is: IsTypeSpec actually meant to be consumed externally by developers? |