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

Add dynamodb.fix_numbers #18

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Add dynamodb.fix_numbers #18

merged 1 commit into from
Aug 14, 2024

Conversation

bbayles
Copy link
Collaborator

@bbayles bbayles commented Aug 13, 2024

This PR adds dynamodb.fix_numbers.

boto/boto3#369 has been open for many years, and I suspect it will be for many more.

In the meantime, this function will change Decimal numbers returned from boto3's dynamodb interface into int or float objects as needed.

Before using this, think about whether you believe any of the falsehoods programmers believe about numbers, and meditate on this issue.

@bbayles bbayles merged commit bb9c360 into main Aug 14, 2024
5 checks passed
@bbayles bbayles deleted the ddb-marshal branch August 14, 2024 12:21
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.

1 participant