Skip to content

ctypes overhaul - #6450

Merged
youknowone merged 2 commits into
RustPython:mainfrom
youknowone:ctypes-overhaul
Dec 19, 2025
Merged

ctypes overhaul#6450
youknowone merged 2 commits into
RustPython:mainfrom
youknowone:ctypes-overhaul

Conversation

@youknowone

@youknowone youknowone commented Dec 16, 2025

Copy link
Copy Markdown
Member

close #2364

Summary by CodeRabbit

  • New Features

    • Major ctypes revamp: richer simple/array/pointer types, dynamic type creation, improved call/casting/interop, byref/out-parameter and COM/cdecl support; array/pointer slicing and buffer introspection added.
    • Support for extended Python struct format specifiers (PEP 3118).
  • Bug Fixes

    • Buffer/descriptor validation now correctly allows scalar (ndim=0) shapes and improves format error checks.
  • Refactor

    • Simplified Python-visible bindings and renamed several dunder/accessor exposures; removed legacy ctypes thunk/callback surface.
  • Chores

    • Spellchecker vocabulary updated with new terms.

✏️ Tip: You can customize this high-level summary in your review settings.

Loading
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.

1 participant