Lines Matching refs:pybind11
26 pybind11::error_already_set SetPyError(PyObject *excClass,
63 namespace pybind11 {
70 bool load(pybind11::handle src, bool) { in load()
85 pybind11::cast<typename DefaultingTy::ReferrentTy &>(src)}; in load()
94 return pybind11::cast(src, policy); in cast()
112 pybind11::list parts;
120 pybind11::str pyPart(part.data,
126 pybind11::str join() {
127 pybind11::str delim("", 0);
136 PyFileAccumulator(pybind11::object fileObject, bool binary)
143 pybind11::gil_scoped_acquire();
147 pybind11::bytes pyBytes(part.data, part.length);
150 pybind11::str pyStr(part.data,
158 pybind11::object pyWriteFunction;
175 accum->value = pybind11::str(part.data, part.length);
179 pybind11::str takeValue() {
185 pybind11::str value;
216 using ClassTy = pybind11::class_<Derived>;
248 Derived dunderGetItemSlice(pybind11::slice slice) {
259 static void bind(pybind11::module &m) {
260 auto clazz = pybind11::class_<Derived>(m, Derived::pyClassName)