GeezerVison is showing github.com — `datastore.set_defaults()` does not error, but `Key` constructor fails · Issue #618 · googleapis/google-cloud-python
datastore.set_defaults() does not error, but Key constructor fails #618
Labels
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. Description
The following code
from gcloud import datastore
datastore.set_defaults()
key = datastore.Key('test',1)
Results in ValueError("A Key must have a dataset ID set")
Activity
dhermes commented on Feb 12, 2015
elibixby commented on Feb 12, 2015
@dhermes woops, thanks, sorry for the noise.
dhermes commented on Feb 12, 2015
It's not noise. I assume your using 0.4.0 from PyPI rather than pulling from HEAD. Either way #610 has only been merged for like 12 hours.
added 5 commits that reference this issue
on Nov 24, 2025This issue will close once commit 6ede787 is merged into the 'main' branch.6ede787 This issue will close once commit 823812e is merged into the 'main' branch.823812e This issue will close once commit 06f1f05 is merged into the 'main' branch.06f1f05 This issue will close once commit 36f2775 is merged into the 'main' branch.36f2775 This issue will close once commit e29e7f0 is merged into the 'main' branch.e29e7f0
Metadata
Metadata
type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns. Development
No branches or pull requestsIssue actions