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

autodict alternative generating a to_dict() or as_dict() method #34

Open
smarie opened this issue Apr 10, 2020 · 0 comments
Open

autodict alternative generating a to_dict() or as_dict() method #34

smarie opened this issue Apr 10, 2020 · 0 comments

Comments

@smarie
Copy link
Owner

smarie commented Apr 10, 2020

@autodict currently makes the class behave as a dict so that all atributes can also be accessed as dict items.

  • side remark: current implementation is maybe (?) overkill for non-slots classes where there is already a __dict__ inside. This is not really an issue for now
  • some (most?) users might prefer to have a as_dict or to_dict method to convert the object
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