Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TypeSpec#2467

HLSSLenda started this conversation inGeneral
Sep 30, 2024· 0 comments
Discussion options

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?

You must be logged in to vote

Replies: 0 comments

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
1 participant
@HLSSLenda

[8]ページ先頭

©2009-2025 Movatter.jp