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 — Disentangle import cycles · Issue #260 · googleapis/google-cloud-python

Disentangle import cycles #260

New issue
Copy link
New issue
Copy link
Closed
Closed
Disentangle import cycles#260
Copy link
Assignees
tseaver
Labels
🚨This issue needs some love.triage meI really want to be triaged.

Description

@tseaver
tseaver
opened on Oct 17, 2014
Issue body actions

Some local non-testing imports are explicitly marked as related to cycles:

$ git grep -n circular
gcloud/datastore/dataset.py:125:        # This import is here to avoid circular 
gcloud/datastore/entity.py:157:        # This is here to avoid circular imports.

Others are not so marked:

gcloud/datastore/__init__.py:64:    from gcloud import credentials
gcloud/datastore/__init__.py:65:    from gcloud.datastore.connection import Connection
gcloud/datastore/dataset.py:73:        from gcloud.datastore.query import Query
gcloud/datastore/dataset.py:86:        from gcloud.datastore.entity import Entity
gcloud/datastore/dataset.py:99:        from gcloud.datastore.transaction import Transaction

gcloud/storage/__init__.py:65:    from gcloud import credentials
gcloud/storage/__init__.py:66:    from gcloud.storage.connection import Connection
gcloud/storage/iterator.py:158:        from gcloud.storage.bucket import Bucket
gcloud/storage/iterator.py:186:        from gcloud.storage.key import Key

We should refactor to fix the cycles, allowing us to normalize those imports.

Activity

Next
  1. tseaver
    changed the title [-]Untangle import cycles[/-] [+]Disentangle import cycles[/+] on Oct 17, 2014
  2. dhermes commented on Oct 17, 2014

    @dhermes
    dhermes
    on Oct 17, 2014
    Contributor
    More actions

    I like it!

  3. tseaver commented on Oct 17, 2014

    @tseaver
    tseaver
    on Oct 17, 2014
    ContributorAuthor
    More actions

    To prevent regressions, (re)enable pylint's 'cyclic-imports' check (disabled in #238) when we're done.

  4. dhermes commented on Oct 19, 2014

    @dhermes
    dhermes
    on Oct 19, 2014
    Contributor
    More actions

    @tseaver are you working on this?

    If not, I'm gonna assign myself. I suppose that should be part of our workflow anyhow, "self-assigning" when working on something.

  5. tseaver commented on Oct 19, 2014

    @tseaver
    tseaver
    on Oct 19, 2014
    ContributorAuthor
    More actions

    Go ahead.

    I think assignment (either self- or from @silvolu) is a reasonable "gateway" to avoiding duplication.

  6. dhermes
    self-assigned this
    on Oct 19, 2014
  7. dhermes commented on Oct 20, 2014

    @dhermes
    dhermes
    on Oct 20, 2014
    Contributor
    More actions

    PR #267 begins this

  8. tseaver commented on Oct 20, 2014

    @tseaver
    tseaver
    on Oct 20, 2014
    ContributorAuthor
    More actions

    After merging #268 and #269, the last step is to drop the exclusion of 'cycle-imports' from the two pylintrc files.

  9. tseaver
    added
    hygiene
    on Oct 20, 2014
  10. tseaver
    assigned
    tseaver
    and unassigned
    dhermes
    on Oct 23, 2014
  11. tseaver
    closed this as completedin d1e1dd3on Oct 23, 2014
  12. tseaver
    added a commit that references this issue on Oct 23, 2014

    Merge pull request #289 from tseaver/260-break_datastore_cycles_move_…

    This issue will close once commit 8a21978 is merged into the 'main' branch.
    8a21978
  13. dhermes commented on Oct 23, 2014

    @dhermes
    dhermes
    on Oct 23, 2014
    Contributor
    More actions

    w00t!

  14. jgeewax
    added this to the This milestone has been deleted milestone on Jan 30, 2015
  15. 55 remaining items

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

    docs: clarify that proto plus messages are not pickleable (#260)

    d0c2c6e

    fix: add pickling support to proto messages (#280)

    b274802

    tests: close coverage gap for race condition (#261)

    887ad21

    chore: consolidate several renovate-bot changes (#273)

    2b5c00f

    feat: Introduce compatibility with native namespace packages (#260)

    1c6ea93

    chore(deps): update all dependencies (#260)

    76b0198

    chore: Re-generated to pick up changes from self (#260)

    48cbff1

    chore: Re-generated to pick up changes from self (#260)

    01d2aab

    chore: Re-generated to pick up changes from self (#260)

    784b94a

    chore: Re-generated to pick up changes from self (#260)

    69ee064

    Fix links to README and CONTRIBUTING in docs/index.rst (#260)

    291eacf
  17. parthea
    added 2 commits that reference this issue on Mar 2, 2026

    test: install pyopenssl for mtls testing (#260)

    e62a9a0

    chore: migrate default branch from master to main (#260)

    1f69b3e
  18. parthea
    added a commit that references this issue on Mar 9, 2026

    chore(deps): update dependency google-cloud-spanner to v3.22.1 (#260)

    5fa72b2
  19. parthea
    added a commit that references this issue on Sep 8, 2026

    docs: migrate code from googleapis/python-bigquery (#18303)

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

Metadata

Metadata

Assignees

  • @tseaver
    tseaver

Labels

🚨This issue needs some love.triage meI really want to be triaged.

Type

No type

Projects

No projects

    Milestone

    No milestone

    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.