Skip to content

[Python] Use value_type and not string matching to pythonize STL vector - #23324

Open
guitargeek wants to merge 1 commit into
root-project:masterfrom
guitargeek:stl-vector-value-type
Open

[Python] Use value_type and not string matching to pythonize STL vector#23324
guitargeek wants to merge 1 commit into
root-project:masterfrom
guitargeek:stl-vector-value-type

Conversation

@guitargeek

Copy link
Copy Markdown
Contributor

Instead of matching numpy-compatible element types by string manipulation on the class name, use the value_type typedef that cppyy exposes on std::vector proxies. This decouples the pythonization from how cppyy happens to spell template instantiation names.

Instead of matching numpy-compatible element types by string manipulation
on the class name, use the `value_type` typedef that cppyy exposes on
std::vector proxies. This decouples the pythonization from how cppyy
happens to spell template instantiation names.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant