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

Fix overriding static properties in derived classes #784

Merged
merged 1 commit into from
Apr 7, 2017

Conversation

dean0x7d
Copy link
Member

@dean0x7d dean0x7d commented Apr 6, 2017

Fixes #775.

Assignments of the form Type.static_prop = value should be translated to Type.static_prop.__set__(value) except when isinstance(value, static_prop).

Fixes pybind#775.

Assignments of the form `Type.static_prop = value` should be translated to
`Type.static_prop.__set__(value)` except when `isinstance(value, static_prop)`.
@jagerman
Copy link
Member

jagerman commented Apr 6, 2017

Looks good to me.

@wjakob
Copy link
Member

wjakob commented Apr 7, 2017

Same here, please feel free to merge.

@dean0x7d dean0x7d merged commit e0e2ea3 into pybind:master Apr 7, 2017
@dean0x7d dean0x7d deleted the static_prop branch April 29, 2017 23:19
@dean0x7d dean0x7d modified the milestone: v2.2 Aug 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants