Skip to content
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

Add support for Rust char type #1281

Closed
bderrett opened this issue Nov 19, 2020 · 2 comments · Fixed by #1282
Closed

Add support for Rust char type #1281

bderrett opened this issue Nov 19, 2020 · 2 comments · Fixed by #1282

Comments

@bderrett
Copy link

Currently it doesn't seem to be possible to wrap a function accepting a char as an argument using PyO3. A char is a (particular kind of) unicode code point, so it could be converted to a single-character Python string. I think this would be a useful feature for users wanting to wrap such functions.

@kngwyu kngwyu mentioned this issue Nov 19, 2020
@kngwyu
Copy link
Member

kngwyu commented Nov 19, 2020

Good catch, thanks. For now, I made an initial implementation on #1282.

@bderrett
Copy link
Author

Many thanks!

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 a pull request may close this issue.

2 participants