29 std::cout << std::flush;
40 using namespace pybind11::literals;
41 pybind11::print(
"end"_a =
"",
"flush"_a =
true);
~FlushStdoutGuard()
Optionally flushes Python's stdout after running Python code.
const bool _flush
To flush or not to flush.
FlushStdoutGuard(bool const flush)
Optionally flushes C++ stdout before running Python code.