mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 21:25:13 +00:00
c7ac16bb2e
The pytype converting constructors are convenient and safe for user code, but for library internals the additional type checks and possible conversions are sometimes not desired. `reinterpret_borrow<T>()` and `reinterpret_steal<T>()` serve as the low-level unsafe counterparts of `cast<T>()`. This deprecates the `object(handle, bool)` constructor. Renamed `borrowed` parameter to `is_borrowed` to avoid shadowing warnings on MSVC. |
||
---|---|---|
.. | ||
pybind11 |