pyo3/src/err
Lily Foote 0dd568d397
Use the new bound API instead of .as_ref(py) (#3853)
* Use the new bound API instead of .as_ref(py)

* Move import into a nested scope

* Use to_cow instead of to_str for compatibility

`to_str` is not available before Python 3.10 on the limited api.

* Relax &self lifetimes

* Use Bound<'py, PyAny> in test Mapping signatures

* Use .as_bytes(py)

* Simplify ThrowCallback::throw signature

* Avoid .as_any call with Py api instead of Bound
2024-02-18 00:09:56 +00:00
..
err_state.rs Pyerr value bound (#3820) 2024-02-17 00:27:45 +00:00
impls.rs Pyerr value bound (#3820) 2024-02-17 00:27:45 +00:00
mod.rs Use the new bound API instead of .as_ref(py) (#3853) 2024-02-18 00:09:56 +00:00