Skip to content

Entity creation type safety #819

@pcostell

Description

@pcostell

Right now, if you create an entity like:

e = datastore.entity.Entity(key, ('data'))

The unindexable properties will be 'd', 'a', or 't'. Obviously in this case the user meant to specify:

e = datastore.entity.Entity(key, ('data',))

Perhaps the Entity constructor should verify that exclude_from_indexes is a list or tuple.

Here is the discussion where the user ran into this: https://groups.google.com/forum/#!topic/gcd-discuss/rqwF8CRdTAY

Metadata

Metadata

Assignees

Labels

api: datastoreIssues related to the Datastore API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions