Title: TupleManager unknown-key access silently returns None / EMPTY_REGEX; raise AttributeError in 2.0 · Issue #256 · derek73/python-nameparser · GitHub
Open Graph Title: TupleManager unknown-key access silently returns None / EMPTY_REGEX; raise AttributeError in 2.0 · Issue #256 · derek73/python-nameparser
X Title: TupleManager unknown-key access silently returns None / EMPTY_REGEX; raise AttributeError in 2.0 · Issue #256 · derek73/python-nameparser
Description: The last member of the silent-config-typo family the 1.3.0 cycle exterminated (#238, #241, #242, #244). TupleManager.__getattr__ returns self.get(attr) — None for any typo'd key — and RegexTupleManager returns EMPTY_REGEX, which matches ...
Open Graph Description: The last member of the silent-config-typo family the 1.3.0 cycle exterminated (#238, #241, #242, #244). TupleManager.__getattr__ returns self.get(attr) — None for any typo'd key — and RegexTupleMan...
X Description: The last member of the silent-config-typo family the 1.3.0 cycle exterminated (#238, #241, #242, #244). TupleManager.__getattr__ returns self.get(attr) — None for any typo'd key — and RegexTupl...
Opengraph URL: https://github.com/derek73/python-nameparser/issues/256
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TupleManager unknown-key access silently returns None / EMPTY_REGEX; raise AttributeError in 2.0","articleBody":"The last member of the silent-config-typo family the 1.3.0 cycle exterminated (#238, #241, #242, #244). `TupleManager.__getattr__` returns `self.get(attr)` — `None` for any typo'd key — and `RegexTupleManager` returns `EMPTY_REGEX`, which matches the empty string at every position:\n\n```python\nCONSTANTS.regexes.parenthesys # EMPTY_REGEX — no error, matches everywhere\nCONSTANTS.capitalization_exceptions.phd_typo # None — no error\n```\n\nA misspelled regex override silently degrades parsing with no traceback pointing at the typo. (The dunder-probe guards added earlier protect copy/pickle protocols but not user typos.)\n\n2.0: unknown attribute access raises `AttributeError` naming the known keys, mirroring `parse_nicknames()`'s existing fail-loud style. `dict.get()` remains available for intentional soft access. The `nickname_delimiters`/`maiden_delimiters` string sentinels are unaffected — they membership-check before resolving.\n\n## Bridge (1.4) — tracked in #263\n\n- [ ] `DeprecationWarning` on unknown-key attribute access, naming the miss and the known keys\n\n","author":{"url":"https://github.com/derek73","@type":"Person","name":"derek73"},"datePublished":"2026-07-06T07:45:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/256/python-nameparser/issues/256"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:43c74cc0-41eb-8afe-4b8a-d63be751883b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DACA:A6E9E:50EB555:70DB80C:6A55021B |
| html-safe-nonce | 47606a87fc379b8ecbfea6ee9f92924c2feee04d43d9606c5061dd84b371d501 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUNBOkE2RTlFOjUwRUI1NTU6NzBEQjgwQzo2QTU1MDIxQiIsInZpc2l0b3JfaWQiOiI2NDI4MzMxOTQ5NDY3OTU5ODM1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 64151609e9d66002fd34f89dfe53671888c84b5ac4bd8fd07ec580acd0d2c1d3 |
| hovercard-subject-tag | issue:4817045389 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/derek73/python-nameparser/256/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b27d5ae152de4f1ecbf2de58f4661715ce122892eda81a606a793c847948bc87/derek73/python-nameparser/issues/256 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b27d5ae152de4f1ecbf2de58f4661715ce122892eda81a606a793c847948bc87/derek73/python-nameparser/issues/256 |
| og:image:alt | The last member of the silent-config-typo family the 1.3.0 cycle exterminated (#238, #241, #242, #244). TupleManager.__getattr__ returns self.get(attr) — None for any typo'd key — and RegexTupleMan... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | derek73 |
| hostname | github.com |
| expected-hostname | github.com |
| None | eae2aab99907699a22d2c8449aa683ca74454fca87211b98f7c7b722086b2839 |
| turbo-cache-control | no-preview |
| go-import | github.com/derek73/python-nameparser git https://github.com/derek73/python-nameparser.git |
| octolytics-dimension-user_id | 18306 |
| octolytics-dimension-user_login | derek73 |
| octolytics-dimension-repository_id | 18353524 |
| octolytics-dimension-repository_nwo | derek73/python-nameparser |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 18353524 |
| octolytics-dimension-repository_network_root_nwo | derek73/python-nameparser |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6a35ab858be185cd86d12b93a43bccf34e8d8536 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width