Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Fix #533: add key and entity equality methods#615

Merged
tseaver merged 7 commits intogoogleapis:masterfrom
tseaver:533-key_and_entity_equality
Feb 12, 2015
Merged

Fix #533: add key and entity equality methods#615
tseaver merged 7 commits intogoogleapis:masterfrom
tseaver:533-key_and_entity_equality

Conversation

@tseaver
Copy link
Contributor

@tseaver tseaver commented Feb 10, 2015

Add Key.{__eq__,__ne__,__hash__}, including correct handling of prefixed dataset IDs.

Move helpers._dataset_ids_equal -> key, for better separation of concerns (and to avoid a cycle).

Add Entity.{__eq__,__ne__}.

Fixes #533

Move '_dataset_ids_equal' from 'helpers' -> 'key', because it is only
useful for keys, and we don't want the cycle.
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 10, 2015
@tseaver tseaver changed the title 533 key and entity equality Fix #533: add key and entity equality methods Feb 10, 2015
@tseaver
Copy link
Contributor Author

tseaver commented Feb 10, 2015

Note that this PR assumes my "incomplete keys never compare equal" simplification.

@dhermes
Copy link
Contributor

dhermes commented Feb 12, 2015

I like the simplification. Reviewing now.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@dhermes
Copy link
Contributor

dhermes commented Feb 12, 2015

Overall looks good, pending my comments.

@dhermes
Copy link
Contributor

dhermes commented Feb 12, 2015

@tseaver

>>> bool(NotImplemented)
True

Hence key == object() is truthy (UPDATE: I missed @tseaver comment.)

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 680800d on tseaver:533-key_and_entity_equality into b395360 on GoogleCloudPlatform:master.

tseaver added a commit that referenced this pull request Feb 12, 2015
Fix #533:  add key and entity equality methods
@tseaver tseaver merged commit 9a918cf into googleapis:master Feb 12, 2015
@tseaver tseaver deleted the 533-key_and_entity_equality branch February 12, 2015 19:19
dhermes added a commit to dhermes/google-cloud-python that referenced this pull request Feb 12, 2015
parthea pushed a commit that referenced this pull request Aug 21, 2025
* chore: Update gapic-generator-python to v1.11.2

PiperOrigin-RevId: 546510849

Source-Link: googleapis/googleapis@736073a

Source-Link: googleapis/googleapis-gen@deb64e8
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGViNjRlOGVjMTlkMTQxZTMxMDg5ZmU5MzJiM2E5OTdhZDU0MWM0ZCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Sep 16, 2025
* chore: Update gapic-generator-python to v1.11.2

PiperOrigin-RevId: 546510849

Source-Link: googleapis/googleapis@736073a

Source-Link: googleapis/googleapis-gen@deb64e8
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZGViNjRlOGVjMTlkMTQxZTMxMDg5ZmU5MzJiM2E5OTdhZDU0MWM0ZCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Sep 18, 2025
Source-Link: googleapis/synthtool@5f2a608
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:8555f0e37e6261408f792bfd6635102d2da5ad73f8f09bcb24f25e6afb5fac97

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
Some APIs define their own module named 'operation' that naively
clashes with google.api_core.operation.
Both modules are imported with a disambiguating alias, but the alias
was not always referenced for the api_core submodule.

This change fixes that issue. Fix for #610
parthea pushed a commit that referenced this pull request Nov 24, 2025
* chore(main): release 2.18.0

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Nov 24, 2025
Source-Link: googleapis/synthtool@703554a
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:94961fdc5c9ca6d13530a6a414a49d2f607203168215d074cdb0a1df9ec31c0b
parthea pushed a commit that referenced this pull request Nov 24, 2025
There was a bug when using a compressed blob property as a child of a structured
property while using the legacy data format for structured properties.

Fixes #602
parthea pushed a commit that referenced this pull request Nov 25, 2025
Source-Link: googleapis/synthtool@703554a
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:94961fdc5c9ca6d13530a6a414a49d2f607203168215d074cdb0a1df9ec31c0b
parthea pushed a commit that referenced this pull request Nov 26, 2025
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Mar 6, 2026
…by time taken by each test module (#615)

* fix: lint_setup_py was failing in Kokoro is not fixed

* feat: rearranged test modules in workflow to uniformly distribute the time taken
parthea added a commit that referenced this pull request Mar 9, 2026
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
parthea pushed a commit that referenced this pull request Mar 9, 2026
🤖 I have created a release \*beep\* \*boop\*
---
## [1.43.0](https://www.github.com/googleapis/python-storage/compare/v1.42.3...v1.43.0) (2021-11-15)


### Features

* add ignore_flush parameter to BlobWriter ([#644](https://www.github.com/googleapis/python-storage/issues/644)) ([af9c9dc](https://www.github.com/googleapis/python-storage/commit/af9c9dc83d8582167b74105167af17c9809455de))
* add support for Python 3.10 ([#615](https://www.github.com/googleapis/python-storage/issues/615)) ([f81a2d0](https://www.github.com/googleapis/python-storage/commit/f81a2d054616c1ca1734997a16a8f47f98ab346b))


### Bug Fixes

* raise a ValueError in BucketNotification.create() if a topic name is not set ([#617](https://www.github.com/googleapis/python-storage/issues/617)) ([9dd78df](https://www.github.com/googleapis/python-storage/commit/9dd78df444d21af51af7858e8958b505a26c0b79))


### Documentation

* add contributing and authoring guides under samples/ ([#633](https://www.github.com/googleapis/python-storage/issues/633)) ([420591a](https://www.github.com/googleapis/python-storage/commit/420591a2b71f823dbe80f4a4405d8a514f87e0fb))
* add links to samples and how to guides ([#641](https://www.github.com/googleapis/python-storage/issues/641)) ([49f78b0](https://www.github.com/googleapis/python-storage/commit/49f78b09fed6d9f486639fd0a72542c30a0df084))
* add README to samples subdirectory ([#639](https://www.github.com/googleapis/python-storage/issues/639)) ([58af882](https://www.github.com/googleapis/python-storage/commit/58af882c047c31f59486513c568737082bca6350))
* update samples readme with cli args ([#651](https://www.github.com/googleapis/python-storage/issues/651)) ([75dda81](https://www.github.com/googleapis/python-storage/commit/75dda810e808074d18dfe7915f1403ad01bf2f02))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DISCUSSION: Implement Key.__eq__ and Entity.__eq__

4 participants