Lines Matching defs:convert

491     bool load(handle src, bool convert) {
492 return load_impl<type_caster_generic>(src, convert);
588 bool try_implicit_casts(handle src, bool convert) {
591 if (sub_caster.load(src, convert)) {
639 PYBIND11_NOINLINE bool load_impl(handle src, bool convert) {
643 // Defer accepting None to other overloads (if we aren't in convert mode):
644 if (!convert) return false;
690 if (this_.try_implicit_casts(src, convert))
695 if (convert) {
932 bool load(handle src, bool convert) { return subcaster.load(src, convert); }
978 bool load(handle src, bool convert) {
985 if (convert || PyFloat_Check(src.ptr()))
1013 if (type_error && convert && PyNumber_Check(src.ptr())) {
1122 bool load(handle src, bool convert) {
1126 else if (convert || !strcmp("numpy.bool_", Py_TYPE(src.ptr())->tp_name)) {
1282 bool load(handle src, bool convert) {
1285 // Defer accepting None to other overloads (if we aren't in convert mode):
1286 if (!convert) return false;
1290 return str_caster.load(src, convert);
1310 throw value_error("Cannot convert None to a character");
1315 throw value_error("Cannot convert empty string to a character");
1367 bool load(handle src, bool convert) {
1373 return load_impl(seq, convert, indices{});
1397 bool load_impl(const sequence &seq, bool convert, index_sequence<Is...>) {
1398 for (bool r : {std::get<Is>(subcasters).load(seq[Is], convert)...})
1448 bool load(handle src, bool convert) {
1449 return base::template load_impl<copyable_holder_caster<type, holder_type>>(src, convert);
1495 bool try_implicit_casts(handle src, bool convert) {
1498 if (sub_caster.load(src, convert)) {
1565 bool load(handle src, bool /* convert */) { value = src; return static_cast<bool>(value); }
1568 bool load(handle src, bool /* convert */) {
1767 throw cast_error("make_tuple(): unable to convert arguments to Python object (compile in debug mode for details)");
1770 throw cast_error("make_tuple(): unable to convert argument of type '" +
1870 /// The `convert` value the arguments should be loaded with
2074 throw cast_error("Unable to convert call argument to Python object "
2079 throw cast_error("Unable to convert call argument '" + name