Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: specialize ctypes #2049

Open
wants to merge 121 commits into
base: develop
Choose a base branch
from
Open

WIP: specialize ctypes #2049

wants to merge 121 commits into from

Conversation

Fire-Cube
Copy link
Contributor

What does this PR do?

Add nodes to generate better ctypes code

Cjw9000-py and others added 30 commits February 3, 2023 18:36
* Aside of "sort" which will need version specific handling in
  attribute operations, and is not too relevant, this covers
  them all.

* Added support for "no_raise" to provide the "mayRaiseException"
  and "mayRaiseExceptionOperation" functions we need in the child
  base class generation.

* We now should be doing operations on lists much faster and with
  less problems from unknown types there due to operations on them,
  with of course the exception of "sort".

* When tracing the type shape of list, we now handle it properly
  even after value escape, which is also good for dict values, as
  they are also mutable, which wasn't handled so far.

* Also some files were not yet making it clear that they are
  generated.

Co-authored-by: cjw <cjw@thedeadfly.com>
* For "info" we should textwrap just like we do with "warning"
  eventually too, but for now this is too much, so we just make
  it all one line and improved the wording while at it.
* Was using that to compare generators with 3.11
* This informs the user that the binary created will not be good
  and recommends 3.8 or higher.
… compatible

* Need to calculate the length still, just using the value given is too naive.
Co-authored-by: AlanHuang (黃偉綸) <AlanHuang@realusion.com.tw>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants