-
Notifications
You must be signed in to change notification settings - Fork 49
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
ndb.key.urlsafe() should return a string not bytes #71
Comments
Particularly annoying when serializing to JSON. Will it remain a |
It is very annoying. Without this you would have to change all templates with string variables (almost all). |
Hi, we had an internal discussion about this behavior, and we usually try to align with Cloud NDB. This would be a breaking change, so the barrier is high. I will discuss with the Cloud NDB team and post an update. For now, I don't see this change happening in the short term future. |
Expected Behavior
When calling ndb.key.urlsafe() you should get a string that can be concatenated with other strings.
Actual Behavior
Currently it return bytes so you need to add .decode() on every call to urlsafe()
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: