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.
1 parent e9e163e commit f197571Copy full SHA for f197571
docs/ownership.rst
@@ -42,7 +42,7 @@ Consider the following problematic example to see what can go wrong:
42
nb::class_<Data>(m, "Data");
43
44
// KABOOM, calling this function will crash the Python interpreter
45
- m.def("get_data", &get_data());
+ m.def("get_data", &get_data);
46
}
47
48
The bound function ``my_ext.get_data()`` returns a Python object of type
0 commit comments