Skip to content

Conversation

@minrk
Copy link
Contributor

@minrk minrk commented Sep 30, 2021

allows default option to override unsupported float behavior, instead of unconditional ValueError.

A smaller change than #13233, though the default ValueError is preserved in the default default method. Since we already have default for expanding what can be serialized, it seems to make sense that it would be called for unsupported values.

I think the same change needs to be added to the corresponding C code produced by c_make_encoder, but I haven't found it yet.

https://bugs.python.org/issue36841

bpo-36841: allows `default` option to override unsupported float behavior,
instead of unconditional ValueError.
@github-actions
Copy link

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Oct 31, 2021
@mitar
Copy link

mitar commented Oct 31, 2021

Somebody has to review it.

@merwok
Copy link
Member

merwok commented Oct 31, 2021

Could a unit test be added to show that this change does something that was not possible or broken before?

@github-actions github-actions bot removed the stale Stale PR or inactive for long period of time. label Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants