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

get_fields, yield_fields, get_field_values should have an optional argument to include properties, descriptors, and vars #71

Open
smarie opened this issue Jun 23, 2020 · 0 comments

Comments

@smarie
Copy link
Owner

smarie commented Jun 23, 2020

It would be very convenient that anyone can use thes helper functions on any class (not necessary classes with fields).

In particular when "view" properties are defined it would be convenient that get_field_values includes them. See for example https://stackoverflow.com/questions/62516472/python-getters-setters-and-manipulating-fields/

Also, we should clarify in the readme that get_field_values is to be preferred over vars when no constructor exists, since it guarantees that the fields with default values/factories are all created if not yet done.

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