You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This list comes from the headers and CMake files. The full table, with replacements, goes in docs/advanced/deprecated.rst. The 3.0 upgrade guide says that items that warned before 3.0 can be removed in any 3.x release.
Deprecated before 3.0, with a warning (can be removed now):
handle::call(...) (1.8)
py::base<T>(), handle::check(), Name::check(), object(handle, bool) / Name(handle, bool), capsule(PyObject*, bool), array_t(handle, bool), obj.attr(...) as bool, obj[key] as bool (2.0)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'd like to do a round of cleanup for pybind11 4.0. I'll collect ideas here.
set.addreturnvoid(See fix: raise from py::set::add instead of leaving an error set #6235)Deprecated items
🤖 AI text below 🤖
This list comes from the headers and CMake files. The full table, with replacements, goes in
docs/advanced/deprecated.rst. The 3.0 upgrade guide says that items that warned before 3.0 can be removed in any 3.x release.Deprecated before 3.0, with a warning (can be removed now):
handle::call(...)(1.8)py::base<T>(),handle::check(),Name::check(),object(handle, bool)/Name(handle, bool),capsule(PyObject*, bool),array_t(handle, bool),obj.attr(...)as bool,obj[key]as bool (2.0).str(),py::metaclass()without arguments (2.1)handle ==/!=,error_already_set::clear(),PYBIND11_PLUGIN, old-style placement-new__init__/__setstate__(runtime warning in debug builds only) (2.2)pybind11/common.hheader (2.2.1; its#warningsays "removed in v3.0")module_(name, doc)constructor,get_type_overload,.get_type()(warns since 3.0) (2.6)PYBIND11_CPP_STANDARD,pybind11_add_module(... SYSTEM),PYTHON_VERSIONas an input (2.6)capsule(value, destructor)(2.10.1)exception<T>::operator()(msg), replaced bypy::set_error(2.12)Deprecated before 3.0, no warning:
PYBIND11_OVERLOAD*macros andget_overload(2.6)py::arg_t(2.0)py::detail::_(2.9.1)Deprecated in 3.x (keep until at least 4.0):
py::enum_,module_::module_def(3.0)mod_gil_not_used(bool)(3.1)All reactions