René's URL Explorer Experiment


Title: Add matches() and comparison_key(); deprecate __eq__/__hash__ · Issue #224 · derek73/python-nameparser · GitHub

Open Graph Title: Add matches() and comparison_key(); deprecate __eq__/__hash__ · Issue #224 · derek73/python-nameparser

X Title: Add matches() and comparison_key(); deprecate __eq__/__hash__ · Issue #224 · derek73/python-nameparser

Description: Bridge work for #223 (removal of __eq__/__hash__ in 2.0). Shipping the replacements in 1.3.0 means there is one release where old and new APIs coexist: downstream code can adopt matches() while == still works, and libraries supporting bo...

Open Graph Description: Bridge work for #223 (removal of __eq__/__hash__ in 2.0). Shipping the replacements in 1.3.0 means there is one release where old and new APIs coexist: downstream code can adopt matches() while == ...

X Description: Bridge work for #223 (removal of __eq__/__hash__ in 2.0). Shipping the replacements in 1.3.0 means there is one release where old and new APIs coexist: downstream code can adopt matches() while == ...

Opengraph URL: https://github.com/derek73/python-nameparser/issues/224

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add matches() and comparison_key(); deprecate __eq__/__hash__","articleBody":"Bridge work for #223 (removal of `__eq__`/`__hash__` in 2.0). Shipping the replacements in 1.3.0 means there is one release where old and new APIs coexist: downstream code can adopt `matches()` while `==` still works, and libraries supporting both 1.3+ and 2.x need no version sniffing.\n\n## New API (deliberately minimal — the signature is a commitment that survives 2.0)\n\n- `matches(other: str | HumanName) -\u003e bool` — exact, case-insensitive comparison of parsed components. String operands are parsed with `self.C`, so `hn.matches(\"Smith, John\")` and `hn.matches(\"John Smith\")` both match — unlike `==`, which only matches strings that render exactly like `str(hn)`. Raises `TypeError` for other types. Docstring notes: parses on every call — pre-parse or use `comparison_key()` when matching against many rows.\n- `comparison_key() -\u003e tuple[str, ...]` — the seven members (title/first/middle/last/suffix/nickname/maiden), each `\" \".join(...__list).lower()`. Built from the `*_list` attributes, so it is independent of `string_format` and `empty_attribute_default`. Includes `maiden` from day one (new in this release).\n\nNo leniency options (initials matching, nickname equivalence) — that's record linkage territory and out of scope; `matches()` is exact-components by design.\n\n## Deprecation\n\n- `DeprecationWarning` in `__eq__` and `__hash__` naming the replacement\n- Docstring note on where `==` and `matches()` disagree during the overlap: maiden-bearing names vs their own `str()` output, and lossy custom `string_format`s (`matches()` compares all components; that's the fix, not a bug)\n\n## Checklist\n\n- [ ] `matches()` + `comparison_key()` + tests (incl. `TypeError`, comma-form equivalence, case-folding, maiden participation)\n- [ ] Deprecation warnings + tests that they fire\n- [ ] Docs + release log entries referencing #223\n","author":{"url":"https://github.com/derek73","@type":"Person","name":"derek73"},"datePublished":"2026-07-05T20:56:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/224/python-nameparser/issues/224"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:3b79d283-f71b-3c7f-7caf-b2582844d278
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBEF8:335AF3:3B67FA4:545AAB0:6A56B648
html-safe-nonce1639dc511281efc6a0561482ea95c7f3de1fc4a0729e9a5679ce4137fc06a6b1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUY4OjMzNUFGMzozQjY3RkE0OjU0NUFBQjA6NkE1NkI2NDgiLCJ2aXNpdG9yX2lkIjoiNTEzMzQ2MTExNDMwMzQ2MDkzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacf6cef2637457c33d56abbec069a3b6621f0e87ad41530c7d53aac019801493f5
hovercard-subject-tagissue:4814411733
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/derek73/python-nameparser/224/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a89db599c1c52f9ec3fa1485c65747eba2affd3bfe94842083e19c2f355ddf56/derek73/python-nameparser/issues/224
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a89db599c1c52f9ec3fa1485c65747eba2affd3bfe94842083e19c2f355ddf56/derek73/python-nameparser/issues/224
og:image:altBridge work for #223 (removal of __eq__/__hash__ in 2.0). Shipping the replacements in 1.3.0 means there is one release where old and new APIs coexist: downstream code can adopt matches() while == ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamederek73
hostnamegithub.com
expected-hostnamegithub.com
Nonedf99b7164e1d961b639cf5d3cbd6b5ba673edc67bd7e47cdc4746b96099e11ae
turbo-cache-controlno-preview
go-importgithub.com/derek73/python-nameparser git https://github.com/derek73/python-nameparser.git
octolytics-dimension-user_id18306
octolytics-dimension-user_loginderek73
octolytics-dimension-repository_id18353524
octolytics-dimension-repository_nwoderek73/python-nameparser
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id18353524
octolytics-dimension-repository_network_root_nwoderek73/python-nameparser
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec29ba03b1896083dbe1084f6cd1c5367d8a0d67c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/derek73/python-nameparser/issues/224#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fderek73%2Fpython-nameparser%2Fissues%2F224
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fderek73%2Fpython-nameparser%2Fissues%2F224
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=derek73%2Fpython-nameparser
Reloadhttps://github.com/derek73/python-nameparser/issues/224
Reloadhttps://github.com/derek73/python-nameparser/issues/224
Reloadhttps://github.com/derek73/python-nameparser/issues/224
derek73 https://github.com/derek73
python-nameparserhttps://github.com/derek73/python-nameparser
Notifications https://github.com/login?return_to=%2Fderek73%2Fpython-nameparser
Fork 111 https://github.com/login?return_to=%2Fderek73%2Fpython-nameparser
Star 711 https://github.com/login?return_to=%2Fderek73%2Fpython-nameparser
Code https://github.com/derek73/python-nameparser
Issues 22 https://github.com/derek73/python-nameparser/issues
Pull requests 2 https://github.com/derek73/python-nameparser/pulls
Actions https://github.com/derek73/python-nameparser/actions
Projects https://github.com/derek73/python-nameparser/projects
Wiki https://github.com/derek73/python-nameparser/wiki
Security and quality 0 https://github.com/derek73/python-nameparser/security
Insights https://github.com/derek73/python-nameparser/pulse
Code https://github.com/derek73/python-nameparser
Issues https://github.com/derek73/python-nameparser/issues
Pull requests https://github.com/derek73/python-nameparser/pulls
Actions https://github.com/derek73/python-nameparser/actions
Projects https://github.com/derek73/python-nameparser/projects
Wiki https://github.com/derek73/python-nameparser/wiki
Security and quality https://github.com/derek73/python-nameparser/security
Insights https://github.com/derek73/python-nameparser/pulse
#247https://github.com/derek73/python-nameparser/pull/247
Add matches() and comparison_key(); deprecate __eq__/__hash__https://github.com/derek73/python-nameparser/issues/224#top
#247https://github.com/derek73/python-nameparser/pull/247
https://github.com/derek73
enhancementhttps://github.com/derek73/python-nameparser/issues?q=state%3Aopen%20label%3A%22enhancement%22
v1.3.0https://github.com/derek73/python-nameparser/milestone/34
https://github.com/derek73
derek73https://github.com/derek73
on Jul 5, 2026https://github.com/derek73/python-nameparser/issues/224#issue-4814411733
#223https://github.com/derek73/python-nameparser/issues/223
Remove __eq__ and __hash__ in 2.0; compare names via explicit methods #223https://github.com/derek73/python-nameparser/issues/223
derek73https://github.com/derek73
enhancementhttps://github.com/derek73/python-nameparser/issues?q=state%3Aopen%20label%3A%22enhancement%22
v1.3.0https://github.com/derek73/python-nameparser/milestone/34
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.