Skip to content

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>
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