-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Implementing JsonProperty
in ndb
.
#6447
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
Conversation
@@ -2082,6 +2083,11 @@ def _db_get_value(self, v, unused_p): | |||
class PickleProperty(BlobProperty): | |||
"""A property that contains values that are pickle-able. | |||
|
|||
.. note:: | |||
|
|||
Unlike most property types, a :class:`PickleProperty` is **not** |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -1463,6 +1463,7 @@ def test_constructor_explicit(): | |||
write_empty_list=False, | |||
) | |||
assert prop._name == b"blob_val" and prop._name != "blob_val" | |||
assert prop._compressed |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Returns: | ||
bytes: The ``value``, JSON encoded as an ASCII byte string. | ||
""" | ||
as_str = json.dumps(value, separators=(",", ":"), ensure_ascii=True) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
abec152
to
19cb5ea
Compare
@chrisrossi PTAL, I made |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.