GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add documentation for storage.Blob's special methods (contains, next, etc) · Issue #60 · googleapis/google-cloud-python

Add documentation for storage.Blob's special methods (contains, next, etc) #60

New issue
Copy link
New issue
Copy link
Closed
#603
Closed
Add documentation for storage.Blob's special methods (contains, next, etc)#60
#603
Copy link
Assignees
yoshi-automation
Labels
🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged.
Milestone
Storage Stable

Description

@jgeewax
jgeewax
opened on Mar 14, 2014
Issue body actions

Right now it's not really clear how to check for a key's existence (do I need to do if Key('name') in bucket? or just 'name' in bucket?

We need to make sure these special methods are documented with examples in the API docs for the Key class.

Activity

Next
  1. jgeewax
    added
    enhancement
    on Mar 14, 2014
  2. tseaver commented on Nov 12, 2014

    @tseaver
    tseaver
    on Nov 12, 2014
    Contributor
    More actions

    The implementation of bucket.__contains__ "wants" a string, but is actually willing to take a string and convert to a key. I would be in favor of dropping that myself, and asking the user to create the key, either via bucket.new_key(name) or by instantiating Key directly.

  3. tseaver
    removed
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on Nov 12, 2014
  4. jgeewax commented on Nov 12, 2014

    @jgeewax
    jgeewax
    on Nov 12, 2014
    ContributorAuthor
    More actions

    I think it'd be annoying to need to create the key to check for existence -- I kind of like the magical "we know what to do if you pass us a string".

    So:

    print 'my-key-name' in bucket
    print Key('my-key-name') in bucket
    print bucket.new_key('my-key-name') in bucket

    should all return a boolean IMO.

  5. tseaver commented on Nov 12, 2014

    @tseaver
    tseaver
    on Nov 12, 2014
    Contributor
    More actions

    You're in luck then: we already DTRT.

  6. jgeewax
    added this to the Storage Stable milestone on Jan 30, 2015
  7. dhermes
    changed the title [-]Add documentation for storage.Key's special methods (contains, next, etc)[/-] [+]Add documentation for storage.Blob's special methods (contains, next, etc)[/+] on Feb 10, 2015
  8. dhermes
    added a commit that references this issue on Feb 10, 2015

    Documenting dunder (e.g. __iter__) methods without docstrings.

    This issue will close once commit ad9e30c is merged into the 'master' branch.
    ad9e30c
  9. dhermes
    closed this as completedin #603on Feb 10, 2015
  10. urshala
    added 3 commits that reference this issue on Jan 17, 2020

    Attempting ssl verification skipping.

    fdd824b

    Merge branch 'verifyssl'

    7cb9365

    Merge branch 'verifyssl'

    c5e8e63
  11. yoshi-automation
    added
    triage meI really want to be triaged.
    on Apr 6, 2020
  12. 97 remaining items

  13. parthea
    added 11 commits that reference this issue on Nov 24, 2025

    chore: remove obsolete replacements in owlbot.py (#60)

    4c6a906

    Only collapse double-slashes once. (#60)

    f00cf47

    chore: add custom sync repo settings (#60)

    8f40dc8

    Release v0.4.1 (#60)

    467f61f

    feat: add support for overriding `context.engine` by magic argument (#60

    732adf7

    feat: pass 'client_options' to base class ctor (#60)

    cf25c04

    fix: use public pandas APIs where possible (#60)

    b08bbe7

    chore(main): release 0.4.0 (#62)

    b92361f

    chore: update templates (#60)

    feafd47

    Sort out Query options. (#60)

    cc5f6ae

    Nox system test refactor (#60)

    f193ad2
  14. parthea
    added 4 commits that reference this issue on Mar 6, 2026

    dbapi: parse out VALUES format specifiers in groups

    3405459

    dbapi: recognize missing pyformat args in add_missing_id

    1551aba

    fix: don't escape collation name (#60)

    8d86b3a

    fix(storage): fix blob metadata to None regression (#60)

    94ca9a8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @yoshi-automation
    yoshi-automation

Labels

🚨This issue needs some love.api: storageIssues related to the Cloud Storage API.triage meI really want to be triaged.

Type

No type

Projects

No projects

    Milestone

    • Storage Stable

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.