Skip to content

implicit conversions #257

Closed Answered by wjakob
huangweiwu asked this question in Q&A
Aug 11, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

nanobind's bool conversion is stricter than the "truthiness" rules in Python. You could modify the type caster to make the behavior more relaxed. The stricter builtin behavior is intentional and I do not wish to change it.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@huangweiwu
Comment options

Answer selected by huangweiwu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants