We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using 0.10. Extension module code:
use pyo3::prelude::*; use pyo3::wrap_pyfunction; #[pymodule] fn test(_py: Python, m: &PyModule) -> PyResult<()> { m.add_wrapped(wrap_pyfunction!(testfn)) } #[pyfunction(arg="true")] fn testfn(arg: Option<bool>) { println!("{:?}", arg); }
Test in interpreter:
>>> import test >>> test.testfn() Some(true) >>> test.testfn(True) Some(true) >>> test.testfn(False) Some(false) >>> test.testfn(None) Some(true)
There is no way to make the argument None anymore...
None
The text was updated successfully, but these errors were encountered:
Thanks, see #936
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Using 0.10. Extension module code:
Test in interpreter:
There is no way to make the argument
None
anymore...The text was updated successfully, but these errors were encountered: