-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Hooking to determine type #140
Comments
Here's how you can do this now:
A thing to keep in mind: structure and unstructure hooks use |
Ah thank you! The missing piece of the puzzle for me was the usage of |
@jpsnyder ok to close this? |
Yes |
Description
Is there a way to create a special hook that determines the class/type to use based on the results of a function. Similar to
register_structure_hook_func()
, but for the value?This would help to support the common technique of including a
_type
in the dict to determine the correct class within a base class.As well, it would allow one to modify the value before being structured.
The text was updated successfully, but these errors were encountered: