pyo3/newsfragments/3142.fixed.md

2 lines
151 B
Markdown
Raw Normal View History

Extend lifetime of holder variables to avoid "temporary value dropped while borrowed" errors when `#[pyfunction]`s take references into `#[pyclass]`es