pyo3/src
Lily Foote 940804fe0d
Pyerr value bound (#3820)
* Implement PyErr::value_bound

* Use PyErr::value_bound in conversions

* Implement PyErr::from_value_bound

* Remove unnecessary clone

* Return a reference from PyErr::value_bound

* Avoid clone in PyErr::from_value_bound

* Use PyErr::from_value_bound instead of from_value

* Remove unnecessary .as_borrowed() calls

* Remove unused import

* Simplify UnraisableCapture.hook

* Use Bound::from_owned_ptr_or_opt in fn cause

* Update PyErrState::lazy to take Py<PyAny>

This is easier to work with elsewhere than `&PyAny` or
`Bound<'py, PyAny>`.

* Add Bound PyUnicodeDecodeError constructors

* Update PyErr::from_value_bound to take Bound

* Simplify PyErr::from_value

* Simplify PyErr::value

* Remove unnecessary reference

* Simplify Pyerr::cause implementation

* Simplify PyUnicodeDecodeError::new_bound
2024-02-17 00:27:45 +00:00
..
conversions Pyerr value bound (#3820) 2024-02-17 00:27:45 +00:00
coroutine port `Python::import` to `Bound` API (#3832) 2024-02-14 00:24:37 +00:00
err Pyerr value bound (#3820) 2024-02-17 00:27:45 +00:00
ffi add `_bound` constructors for datetime types (#3778) 2024-02-12 20:49:58 +00:00
impl_ Pyerr value bound (#3820) 2024-02-17 00:27:45 +00:00
inspect docs: require docs on all public APIs 2022-09-07 07:42:23 +01:00
pycell call PyObject_GC_Untrack before deallocating 2023-09-09 22:29:58 +01:00
pyclass Refactor create_type_object so that most of the code is monomorphic 2023-11-28 20:09:34 -05:00
tests Pyerr value bound (#3820) 2024-02-17 00:27:45 +00:00
types Pyerr value bound (#3820) 2024-02-17 00:27:45 +00:00
buffer.rs convert `PyBuffer` to `Bound` API (#3836) 2024-02-14 22:10:59 +00:00
callback.rs add as_ptr and into_ptr inherent methods 2023-08-11 10:49:42 +01:00
conversion.rs adjust `FromPyObject` implementations to always use `'py` lifetime 2024-02-04 14:22:03 +00:00
coroutine.rs Pyerr value bound (#3820) 2024-02-17 00:27:45 +00:00
derive_utils.rs remove copyright headers from source files 2023-06-03 22:38:54 +01:00
exceptions.rs Pyerr value bound (#3820) 2024-02-17 00:27:45 +00:00
ffi_ptr_ext.rs implement iterator for `Bound` iterator 2023-12-24 19:52:36 +00:00
gil.rs port `Python::import` to `Bound` API (#3832) 2024-02-14 00:24:37 +00:00
impl_.rs feat: add coroutine `__name__`/`__qualname__` and not-awaited warning 2023-11-25 21:51:20 +01:00
instance.rs support `Bound` for `classmethod` and `pass_module` (#3831) 2024-02-16 00:36:11 +00:00
internal_tricks.rs support `text_signature` on `#[new]` 2023-05-04 07:15:11 +01:00
lib.rs add `PyBackedStr` and `PyBackedBytes` (#3802) 2024-02-15 07:58:20 +00:00
macros.rs port `IntoPyDict` to `Bound` API 2024-02-10 15:47:26 +01:00
marker.rs port `Python::import` to `Bound` API (#3832) 2024-02-14 00:24:37 +00:00
marshal.rs deprecate `PyDict::new` constructor (#3823) 2024-02-11 23:55:56 +00:00
panic.rs safety: abort on uncaught panics 2022-08-14 13:47:46 +01:00
prelude.rs implement `PyCapsuleMethods` 2024-01-29 18:22:40 +01:00
py_result_ext.rs implement `PyModuleMethods` 2023-12-29 21:46:46 +00:00
pybacked.rs add `PyBackedStr` and `PyBackedBytes` (#3802) 2024-02-15 07:58:20 +00:00
pycell.rs add `bound` method variants for `PyTypeInfo` 2024-02-08 22:27:05 +00:00
pyclass.rs Also replace IterANextOutput by autoref-based specialization to allow returning arbitrary values 2023-12-20 09:56:16 +01:00
pyclass_init.rs add as_ptr and into_ptr inherent methods 2023-08-11 10:49:42 +01:00
sync.rs port `Python::import` to `Bound` API (#3832) 2024-02-14 00:24:37 +00:00
test_utils.rs truncate leap seconds on `chrono` to `datetime` conversions 2023-09-24 20:28:43 +01:00
type_object.rs add `bound` method variants for `PyTypeInfo` 2024-02-08 22:27:05 +00:00
version.rs Add numeric and object protocol examples 2022-02-23 10:09:45 +01:00