Skip to content

[Feature request] Support bytearray argument as string_view #2975

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

Open
gatopeich opened this issue Apr 23, 2021 · 1 comment
Open

[Feature request] Support bytearray argument as string_view #2975

gatopeich opened this issue Apr 23, 2021 · 1 comment

Comments

@gatopeich
Copy link

I have a class method that takes string_view parameters.
It works fine with bytes and strings, but not with bytearray.
How can I make it work?

@gatopeich
Copy link
Author

I found pybind11::bytearray was added in #2799, facilitating this task. No docs about it, though!

@gatopeich gatopeich changed the title [QUESTION] How to pass a view into a bytearray? [Feature request] Support bytearray argument as string_view Nov 12, 2021
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

No branches or pull requests

1 participant