Skip to content

Navigation Menu

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

Appearance settings

_ctypes pt. 2 #5524

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

Merged
merged 14 commits into from
Feb 20, 2025
Merged

_ctypes pt. 2 #5524

merged 14 commits into from
Feb 20, 2025

Conversation

arihant2math
Copy link
Collaborator

@arihant2math arihant2math commented Feb 15, 2025

Successor to #5519

  • Add __version__ attribute
  • Add some structured data types
  • get c_int and c_float working
  • get create_string_buffer working out of scope for this pr
  • get LoadLibrary working
  • Add some constants ctypes wants to import
  • Stub some more functions

The following works now (I've added it to extra_tests):

# test code from previous pr here
i = c_int(42)
f = c_float(3.14)
assert i.value == 42
assert f.value == 3.14

Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
@arihant2math arihant2math marked this pull request as ready for review February 18, 2025 21:56
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
Copy link
Member

@youknowone youknowone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thank you!

@youknowone youknowone merged commit e2b0fe4 into RustPython:main Feb 20, 2025
11 checks passed
@arihant2math arihant2math deleted the ctypes-pt2 branch February 20, 2025 18:43
@arihant2math arihant2math mentioned this pull request Feb 28, 2025
28 tasks
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.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.