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

Rename default to enc_hook #32

Merged
merged 1 commit into from Jun 22, 2021
Merged

Rename default to enc_hook #32

merged 1 commit into from Jun 22, 2021

Conversation

jcrist
Copy link
Owner

@jcrist jcrist commented Jun 22, 2021

The kwarg name default was used to match that of existing apis (e.g.
json.dumps). However, I don't think it's the best name (default to
me implies a static value, not a callable). Since we already have
ext_hook and I want to add dec_hook for custom typed decoders,
renaming to enc_hook makes the most sense.

The kwarg name `default` was used to match that of existing apis (e.g.
`json.dumps`). However, I don't think it's the best name (`default` to
me implies a static value, not a callable). Since we already have
`ext_hook` and I want to add `dec_hook` for custom typed decoders,
renaming to `enc_hook` makes the most sense.
@jcrist jcrist merged commit c45cb91 into master Jun 22, 2021
@jcrist jcrist deleted the rename-enc-hook branch June 22, 2021 04:31
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.

None yet

1 participant