Title: Docs: reframe shared CONSTANTS as an application-startup contract · Issue #262 · derek73/python-nameparser · GitHub
Open Graph Title: Docs: reframe shared CONSTANTS as an application-startup contract · Issue #262 · derek73/python-nameparser
X Title: Docs: reframe shared CONSTANTS as an application-startup contract · Issue #262 · derek73/python-nameparser
Description: The shared module-level CONSTANTS is sound — it's the only channel that reaches parses happening inside code you don't own (helpers, pipelines, third-party libraries using nameparser internally), the same justification logging and locale...
Open Graph Description: The shared module-level CONSTANTS is sound — it's the only channel that reaches parses happening inside code you don't own (helpers, pipelines, third-party libraries using nameparser internally), t...
X Description: The shared module-level CONSTANTS is sound — it's the only channel that reaches parses happening inside code you don't own (helpers, pipelines, third-party libraries using nameparser intern...
Opengraph URL: https://github.com/derek73/python-nameparser/issues/262
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Docs: reframe shared CONSTANTS as an application-startup contract","articleBody":"The shared module-level `CONSTANTS` is sound — it's the only channel that reaches parses happening inside code you don't own (helpers, pipelines, third-party libraries using nameparser internally), the same justification `logging` and `locale` have. The gotchas all come from mutating it casually. The docs should state that as a contract instead of warning about it:\n\n\u003e `CONSTANTS` is for application-level configuration, set once at startup. For anything scoped — one dataset, one library, one test — pass your own `Constants` instance.\n\nChanges:\n- customize.rst: lead the customization docs with the contract; demote the \"Potential Gotcha\" section to a consequence of violating it rather than a surprise property of the API\n- `nameparser/config/__init__.py` module docstring: same reframe (it currently teaches the `None` sentinel first)\n- Fold in the three-spelling vocabulary from #260 once `Constants.copy()` exists\n\nNo code changes. Depends on #260 only for the vocabulary mention; the reframe itself is true today.\n","author":{"url":"https://github.com/derek73","@type":"Person","name":"derek73"},"datePublished":"2026-07-06T08:14:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/262/python-nameparser/issues/262"}
| 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:a0055e80-48f6-9d40-1f20-5b7c6e61b6d3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A00C:36D163:AAD5CA:E5DCC9:6A56FA90 |
| html-safe-nonce | 612faf28a71d2326273a905a6fd6be0f34c008fd1af7675918888326630aba5d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMDBDOjM2RDE2MzpBQUQ1Q0E6RTVEQ0M5OjZBNTZGQTkwIiwidmlzaXRvcl9pZCI6IjUwNTAwMzUxNTQxNDk4OTg4OTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d8e43a17b25dc6e9afe95df9c3d4c87a5a507c96bb500bf9a0b48af4844091fd |
| hovercard-subject-tag | issue:4817248471 |
| 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/262/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bfb797682f810f46e11d9519b6a8581f87a18990e11b8277c9a8ee42d2a26db6/derek73/python-nameparser/issues/262 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bfb797682f810f46e11d9519b6a8581f87a18990e11b8277c9a8ee42d2a26db6/derek73/python-nameparser/issues/262 |
| og:image:alt | The shared module-level CONSTANTS is sound — it's the only channel that reaches parses happening inside code you don't own (helpers, pipelines, third-party libraries using nameparser internally), t... |
| 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 | 4eb29e5f807bd95e41196adfbc6d28f9af12d89830d8b684f3e871774ddff2fc |
| 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 | b056788a129fb0194b61f2ebb4c43f6a9f4dfd27 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width