Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid attr("__repr__") in initialize_generic #2317

Merged
merged 1 commit into from
Jul 24, 2020

Commits on Jul 24, 2020

  1. Avoid attr("__repr__") in initialize_generic

    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 pybind#2028
    bstaletic committed Jul 24, 2020
    Configuration menu
    Copy the full SHA
    2d4a04b View commit details
    Browse the repository at this point in the history