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 — Should we compare Entity._meanings in __eq__ · Issue #1313 · googleapis/google-cloud-python

Should we compare Entity._meanings in __eq__ #1313

New issue
Copy link
New issue
Copy link
Closed
Closed
Should we compare Entity._meanings in __eq__#1313
Copy link
Assignees
dhermes
Labels
api: datastoreIssues related to the Datastore API.type: questionRequest for information or clarification. Not an issue.

Description

@dhermes
dhermes
opened on Dec 21, 2015
Issue body actions

/cc @tseaver @pcostell

Activity

  1. dhermes
    added
    api: datastoreIssues related to the Datastore API.
    on Dec 21, 2015
  2. tseaver commented on Dec 22, 2015

    @tseaver
    tseaver
    on Dec 22, 2015
    Contributor
    More actions

    AFAICT, two fields with identical values but different meanings should compare unequal.

  3. tseaver
    added
    type: questionRequest for information or clarification. Not an issue.
    on Dec 22, 2015
  4. dhermes commented on Dec 22, 2015

    @dhermes
    dhermes
    on Dec 22, 2015
    ContributorAuthor
    More actions

    OK cool. Will wait on @pcostell before implementing.

  5. pcostell commented on Jan 5, 2016

    @pcostell
    pcostell
    on Jan 5, 2016
    Contributor
    More actions

    Agree here. But I think entity equality should also take into consideration exclude_from_indexes.

    Borrowing from @Alfus:

    In this case I would suggest that equality/comparison depend on the library implementation. 'smart' equal functions are usually problematic in the long run, so if the object holding the value also holds the meaning, I think meaning should be considered (i.e. equal should mean identical objects). If the object also holds 'exclude_from_indexes', that should also be considered (for example, comparing two entities should take this into consideration).

  6. dhermes commented on Jan 5, 2016

    @dhermes
    dhermes
    on Jan 5, 2016
    ContributorAuthor
    More actions

    Thanks. Will implement and ping you on the PR.

  7. dhermes
    added a commit that references this issue on Jan 5, 2016

    Adding excludes and meanings to Entity equality check.

    This issue will close once commit 1919544 is merged into the 'master' branch.
    1919544
  8. dhermes
    closed this as completedin #1347on Jan 7, 2016
  9. JustinBeckwith
    assigned
    dhermes
    on Feb 1, 2021
  10. parthea
    added 2 commits that reference this issue on Mar 6, 2026

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

    aec1267

    perf: add option for last_statement (#1313)

    49623e3
  11. sgorse123
    added 2 commits that reference this issue on Apr 1, 2026

    feat: Add last statement option samples

    065084b

    feat: Add last statement option samples

    a82a7b7
  12. sinhasubham
    added a commit that references this issue on Apr 27, 2026

    feat: Add last statement option samples (#16499)

    ee09805
  13. 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

  • @dhermes
    dhermes

Labels

api: datastoreIssues related to the Datastore API.type: questionRequest for information or clarification. Not an issue.

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.