Skip to content

DISCUSSION: Implement Key.__eq__ and Entity.__eq__ #533

@dhermes

Description

@dhermes

Currently comparison must be done in an ad-hoc way:

assert dict(arya_entity.items()) == {'name': 'Arya', 'family': 'Stark'})

FWIW __eq__ is not something that should really be needed outside of the Key, and even then not so much.

NOTE: This was a small part of #336

Metadata

Metadata

Assignees

Labels

api: datastoreIssues related to the Datastore API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions