Skip to content

[cpyrt] Add CStringArrayConverter::ToMemory - #74

Merged
aaronj0 merged 1 commit into
compiler-research:mainfrom
aaronj0:cstring-array-tomemory
Sep 3, 2026
Merged

[cpyrt] Add CStringArrayConverter::ToMemory#74
aaronj0 merged 1 commit into
compiler-research:mainfrom
aaronj0:cstring-array-tomemory

Conversation

@aaronj0

@aaronj0 aaronj0 commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Assigning to a const char** data member inherited the buffer-only ToMemory of the base converter, so a Python string was rejected with a property type mismatch. Accept a string as well, with the buffer copy factored into a helper covering the fixed and unbounded cases and the lifetime tie-in. From the ROOT migration.

Assigning to a const char** data member inherited the buffer-only
ToMemory of the base converter, so a Python string was rejected with a
property type mismatch. Accept a string as well, with the buffer copy
factored into a helper covering the fixed and unbounded cases and the
lifetime tie-in.
@aaronj0
aaronj0 requested a review from guitargeek September 3, 2026 12:28

@guitargeek guitargeek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, thanks!

@aaronj0
aaronj0 merged commit 8be966d into compiler-research:main Sep 3, 2026
9 checks passed
@aaronj0
aaronj0 deleted the cstring-array-tomemory branch September 3, 2026 13:31
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