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

More nuanced way to determine whether to manage a dynamic property #101

Open
dannyroberts opened this issue Sep 10, 2014 · 0 comments
Open

Comments

@dannyroberts
Copy link
Member

Setting an attribute to a function should not crash, and overwriting an existing method should not create a managed property.

Example: if Foo has a save method then both of the following should be fine, where foo = Foo():

# to_json() shouldn't include "save": None
foo.save = None

# shouldn't crash
foo.save = lambda self: None
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

No branches or pull requests

1 participant