We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
return_value_policy::_clif_automatic
1 parent ba3d14d commit bd69f7aCopy full SHA for bd69f7a
include/pybind11/type_caster_pyobject_ptr.h
@@ -32,7 +32,8 @@ class type_caster<PyObject> {
32
raise_from(PyExc_SystemError, "src != nullptr but PyErr_Occurred()");
33
throw error_already_set();
34
}
35
- if (policy == return_value_policy::take_ownership) {
+ if (policy == return_value_policy::take_ownership
36
+ || policy == return_value_policy::_clif_automatic) {
37
return src;
38
39
if (policy == return_value_policy::reference
0 commit comments