"git@developer.sourcefind.cn:gaoqiong/pybind11.git" did not exist on "0a07805ab663b981d72bbe2663b946f8c18e67cf"
Avoid attr("__repr__") in initialize_generic (#2317)
If the default argument value is a class, and not an instance of a
class, `a.value.attr("__repr__")` raises a `ValueError`. Switching to
`repr(a.value)` makes this use case work.
Fixes #2028
Showing
Please register or sign in to comment