Yannick Jadoul
Yannick Jadoul
Oh, yes, of course! You are right; I'd failed to notice that complexity! So the `A_trampoline::func()` does get called, but there's nothing it can do because it's indeed not a...
Wait, actually, this might be nastier than it seemed at first. Because ... where is the actual Python object now stored (including its attributes)? I guess this either means something's...
Yeah, there's the thing with `this_object.get_type()(this_object)`, which is a call to that constructor of B, but with the object as argument. Another option would to try and see if you...
But also, I'm still not convinced that this `py::cast(.release());` is ok. Maybe @dean0x7d has a better idea of what would be happening inside pybind11, and why this approach magically doesn't...
> I'm not familiar with deepcopy() enough to figure out how to use it in `__init__` but in the case of deepcopy what will happen with C++ object base? I...
Nice, I had not idea about the aliasing constructor of an `std::shared_ptr`. Now I'm just wondering, if you want to make this transparent to the Python side, could you maybe...