Skip to content

Remove __iter__ and __contains__ from Connection in storage #590

Closed

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.

Activity

  1. added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    api: storageIssues related to the Cloud Storage API.
    on Feb 1, 2015
  2. dhermes commented on Feb 1, 2015

    @dhermes
    ContributorAuthor

    Also related to removing __contains__ is #588

  3. modified the milestone: Storage Stable on Feb 2, 2015
  4. self-assigned this
    on Feb 9, 2015
  5. dhermes commented on Feb 9, 2015

    @dhermes
    ContributorAuthor

    @tseaver Gonna work on this.

  6. added 2 commits that reference this issue on Feb 9, 2015
    8a09e84
    45fd420
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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