Lines Matching refs:cast
215 // When converting between Python types, obj.cast<T>() should be the same as T(obj)
217 "str"_a=d["str"].cast<py::str>(),
218 "bool"_a=d["bool"].cast<py::bool_>(),
219 "int"_a=d["int"].cast<py::int_>(),
220 "float"_a=d["float"].cast<py::float_>(),
221 "tuple"_a=d["tuple"].cast<py::tuple>(),
222 "list"_a=d["list"].cast<py::list>(),
223 "dict"_a=d["dict"].cast<py::dict>(),
224 "set"_a=d["set"].cast<py::set>(),
225 "memoryview"_a=d["memoryview"].cast<py::memoryview>()
234 d["char*_e"] = py::cast(c2);
241 d["int_e"] = py::cast(i);
249 d["str_e"] = py::cast(s2);
255 l[1] = py::cast(6);
257 l.append(py::cast(12));