Closed
Description
At the moment, it just raises NotImplementedError
. I imagine that it is
intended to return a new key whose path is the "parent path" of the
current key. E.g.:
>>> from gcloud.datastore.key import Key
>>> PATH = [{'kind': 'parent', 'id': 123}, {'kind': 'child', 'id': 456}]
>>> child = Key(path=PATH)
>>> parent = key.parent()
>>> parent.path() == child.path[:-1]
True