pyo3/tests/ui/not_send2.rs

13 lines
234 B
Rust
Raw Permalink Normal View History

use pyo3::prelude::*;
use pyo3::types::PyString;
fn main() {
Python::with_gil(|py| {
2023-11-21 11:41:43 +00:00
let string = PyString::new_bound(py, "foo");
py.allow_threads(|| {
println!("{:?}", string);
});
});
2023-11-21 11:41:43 +00:00
}