-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
DynamoDB's Binary type issues with Python 3 #846
Comments
Makes sense to have. We will take a look at your PR as well to make sure this gets implemented. |
Bumping this issue as I just encountered it while using python3. Any idea if the fix presented by @miguelgrinberg is acceptable? |
Why is this marked as Also, why is the |
This is currently preventing us from properly utilizing the Binary field in DynamoDB in our application. Is there an ETA on a potential fix for this issue? |
FYI: I submitted a PR that addresses this issue (more than two years ago!!!): #848. So if your process allows it, you can install the PR branch to avoid the issue. Unfortunately the maintainers are slow or not interested in getting this fix out. :( |
I encountered this issue also. Found I could work around it by accessing the value directly. E.g.
|
Just wanted to check in here and provide some updates. For now, I would refer to the workaround provided by @mhball in previous comment. Thanks for sharing the workaround with others ❤️ |
The
Binary
class has a problematic implementation of the__str__()
method that assumesstr
andbytes
are interchangeable. Example:The above examples all succeed under Python 2.7.
The text was updated successfully, but these errors were encountered: