We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6879d02 commit 5ca84bbCopy full SHA for 5ca84bb
src/binding/python/Series.cpp
@@ -301,7 +301,8 @@ not possible once it has been closed.
301
throw std::runtime_error("Unreachable");
302
},
303
// copy + keepalive
304
- py::return_value_policy::copy)
+ py::return_value_policy::copy,
305
+ py::keep_alive<0, 1>())
306
.def(
307
"current_iteration",
308
[](Snapshots &s) -> std::optional<IndexedIteration> {
@@ -315,6 +316,7 @@ not possible once it has been closed.
315
316
return std::nullopt;
317
}
318
319
+ py::keep_alive<0, 1>(),
320
"Return the iteration that is currently being written to, if "
321
"it "
322
"exists.");
0 commit comments