Skip to content

Remove __iter__ and __contains__ from Connection in storage #590

@dhermes

Description

@dhermes

@tseaver WDYT?

This is part of a movement towards making Connection more of a background / low-level / raw interface (like it is for datastore).

What's more

for bucket in connection.get_all_buckets():
    ...

seems much more clear than

for bucket in connection:
    ...

We could potentially make up for __contains__ by adding a Bucket.exists method / property.

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions