René's URL Explorer Experiment


Title: Use the C domain roles consistently in the documentation · Issue #107091 · python/cpython · GitHub

Open Graph Title: Use the C domain roles consistently in the documentation · Issue #107091 · python/cpython

X Title: Use the C domain roles consistently in the documentation · Issue #107091 · python/cpython

Description: :c:member:, :c:data: and :c:var: are equivalent. I do not know whether there is a semantic difference between :c:data: and :c:var: (although I think that :c:member: is semantically different and should be used for attributes). :c:member:...

Open Graph Description: :c:member:, :c:data: and :c:var: are equivalent. I do not know whether there is a semantic difference between :c:data: and :c:var: (although I think that :c:member: is semantically different and sh...

X Description: :c:member:, :c:data: and :c:var: are equivalent. I do not know whether there is a semantic difference between :c:data: and :c:var: (although I think that :c:member: is semantically different and sh...

Opengraph URL: https://github.com/python/cpython/issues/107091

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use the C domain roles consistently in the documentation","articleBody":"`:c:member:`, `:c:data:` and `:c:var:` are equivalent. I do not know whether there is a semantic difference between `:c:data:` and `:c:var:` (although I think that `:c:member:` is semantically different and should be used for attributes).\r\n\r\n`:c:member:` is used 813 times for 202 names.\r\n\r\n`:c:data:` is used 265 times for 143 names:\r\n\u003cdetails\u003e\r\n\r\n```\r\n:c:data:`command`\r\n:c:data:`errno`\r\n:c:data:`immutable types \u003cPy_TPFLAGS_IMMUTABLETYPE\u003e`\r\n:c:data:`nb_long`\r\n:c:data:`nb_reserved`\r\n:c:data:`PyBool_Type`\r\n:c:data:`Py_buffer`\r\n:c:data:`Py_buffer.format`\r\n:c:data:`Py_buffer.itemsize`\r\n:c:data:`Py_BytesWarningFlag`\r\n:c:data:`PyCallIter_Type`\r\n:c:data:`PyCFunction`\r\n:c:data:`PyCMethod`\r\n:c:data:`PyContextToken_Type`\r\n:c:data:`PyContext_Type`\r\n:c:data:`PyContextVar_Type`\r\n:c:data:`PyDateTimeAPI`\r\n:c:data:`PyDateTime_Date`\r\n:c:data:`PyDateTime_DateTime`\r\n:c:data:`PyDateTime_DateTimeType`\r\n:c:data:`PyDateTime_DateType`\r\n:c:data:`PyDateTime_Delta`\r\n:c:data:`PyDateTime_DeltaType`\r\n:c:data:`PyDateTime_Time`\r\n:c:data:`PyDateTime_TimeType`\r\n:c:data:`PyDateTime_TimeZone_UTC`\r\n:c:data:`PyDateTime_TZInfoType`\r\n:c:data:`Py_Ellipsis`\r\n:c:data:`Py_eval_input`\r\n:c:data:`PyExc_ArithmeticError`\r\n:c:data:`PyExc_AssertionError`\r\n:c:data:`PyExc_AttributeError`\r\n:c:data:`PyExc_BaseException`\r\n:c:data:`PyExc_BlockingIOError`\r\n:c:data:`PyExc_BrokenPipeError`\r\n:c:data:`PyExc_BufferError`\r\n:c:data:`PyExc_BytesWarning`\r\n:c:data:`PyExc_ChildProcessError`\r\n:c:data:`PyExc_ConnectionAbortedError`\r\n:c:data:`PyExc_ConnectionError`\r\n:c:data:`PyExc_ConnectionRefusedError`\r\n:c:data:`PyExc_ConnectionResetError`\r\n:c:data:`PyExc_DeprecationWarning`\r\n:c:data:`PyExc_EnvironmentError`\r\n:c:data:`PyExc_EOFError`\r\n:c:data:`PyExc_Exception`\r\n:c:data:`PyExc_FileExistsError`\r\n:c:data:`PyExc_FileNotFoundError`\r\n:c:data:`PyExc_FloatingPointError`\r\n:c:data:`PyExc_FutureWarning`\r\n:c:data:`PyExc_GeneratorExit`\r\n:c:data:`PyExc_ImportError`\r\n:c:data:`PyExc_ImportWarning`\r\n:c:data:`PyExc_IndentationError`\r\n:c:data:`PyExc_IndexError`\r\n:c:data:`PyExc_InterruptedError`\r\n:c:data:`PyExc_IOError`\r\n:c:data:`PyExc_IsADirectoryError`\r\n:c:data:`PyExc_KeyboardInterrupt`\r\n:c:data:`PyExc_KeyError`\r\n:c:data:`PyExc_LookupError`\r\n:c:data:`PyExc_MemoryError`\r\n:c:data:`PyExc_ModuleNotFoundError`\r\n:c:data:`PyExc_NameError`\r\n:c:data:`PyExc_NotADirectoryError`\r\n:c:data:`PyExc_NotImplementedError`\r\n:c:data:`PyExc_OSError`\r\n:c:data:`PyExc_OverflowError`\r\n:c:data:`PyExc_PendingDeprecationWarning`\r\n:c:data:`PyExc_PermissionError`\r\n:c:data:`PyExc_ProcessLookupError`\r\n:c:data:`PyExc_RecursionError`\r\n:c:data:`PyExc_ReferenceError`\r\n:c:data:`PyExc_ResourceWarning`\r\n:c:data:`PyExc_RuntimeError`\r\n:c:data:`PyExc_RuntimeWarning`\r\n:c:data:`PyExc_StopAsyncIteration`\r\n:c:data:`PyExc_StopIteration`\r\n:c:data:`PyExc_SyntaxError`\r\n:c:data:`PyExc_SyntaxWarning`\r\n:c:data:`PyExc_SystemError`\r\n:c:data:`PyExc_SystemExit`\r\n:c:data:`PyExc_TabError`\r\n:c:data:`PyExc_TimeoutError`\r\n:c:data:`PyExc_TypeError`\r\n:c:data:`PyExc_UnboundLocalError`\r\n:c:data:`PyExc_UnicodeDecodeError`\r\n:c:data:`PyExc_UnicodeEncodeError`\r\n:c:data:`PyExc_UnicodeError`\r\n:c:data:`PyExc_UnicodeTranslateError`\r\n:c:data:`PyExc_UnicodeWarning`\r\n:c:data:`PyExc_UserWarning`\r\n:c:data:`PyExc_ValueError`\r\n:c:data:`PyExc_Warning`\r\n:c:data:`PyExc_WindowsError`\r\n:c:data:`PyExc_ZeroDivisionError`\r\n:c:data:`Py_False`\r\n:c:data:`Py_file_input`\r\n:c:data:`Py_FileSystemDefaultEncodeErrors`\r\n:c:data:`PyFunction_Type`\r\n:c:data:`Py_IgnoreEnvironmentFlag`\r\n:c:data:`PyImport_FrozenModules`\r\n:c:data:`PyImport_Inittab`\r\n:c:data:`PyInstanceMethod_Type`\r\n:c:data:`PyMethod_Type`\r\n:c:data:`Py_mod_exec`\r\n:c:data:`PyModuleDef_HEAD_INIT`\r\n:c:data:`PyModule_Type`\r\n:c:data:`Py_None`\r\n:c:data:`Py_NotImplemented`\r\n:c:data:`PyOS_ReadlineFunctionPointer`\r\n:c:data:`Py_Py3kWarningFlag`\r\n:c:data:`PySeqIter_Type`\r\n:c:data:`Py_single_input`\r\n:c:data:`PyStructSequence_UnnamedField`\r\n:c:data:`Py_tp_base`\r\n:c:data:`Py_tp_bases`\r\n:c:data:`PyTrace_CALL`\r\n:c:data:`PyTrace_C_CALL`\r\n:c:data:`PyTrace_C_EXCEPTION`\r\n:c:data:`PyTrace_C_RETURN`\r\n:c:data:`PyTrace_EXCEPTION`\r\n:c:data:`PyTrace_LINE`\r\n:c:data:`PyTrace_OPCODE`\r\n:c:data:`PyTrace_RETURN`\r\n:c:data:`Py_True`\r\n:c:data:`PyType_GetModuleByDef`\r\n:c:data:`PyType_Type`\r\n:c:data:`PyUnicode_1BYTE_KIND`\r\n:c:data:`PyUnicode_2BYTE_KIND`\r\n:c:data:`PyUnicode_4BYTE_KIND`\r\n:c:data:`PyUnicode_WCHAR_KIND`\r\n:c:data:`Py_UTF8Mode`\r\n:c:data:`Py_Version`\r\n:c:data:`rl_attempted_completion_function`\r\n:c:data:`rl_completer_word_break_characters`\r\n:c:data:`rl_completion_display_matches_hook`\r\n:c:data:`rl_completion_type`\r\n:c:data:`rl_line_buffer`\r\n:c:data:`rl_pre_input_hook`\r\n:c:data:`rl_startup_hook`\r\n:c:data:`SpamError`\r\n:c:data:`sts`\r\n```\r\n\u003c/details\u003e\r\nIn some of these cases (e.g. for `nb_long` or `Py_buffer.format`) `:c:member:` looks more semantically appropriate.\r\n\r\n`:c:var:` is used 51 times for 28 names:\r\n\u003cdetails\u003e\r\n\r\n```\r\n:c:var:`Py_BytesWarningFlag`\r\n:c:var:`Py_DebugFlag`\r\n:c:var:`Py_DontWriteBytecodeFlag`\r\n:c:var:`Py_FileSystemDefaultEncodeErrors`\r\n:c:var:`Py_FileSystemDefaultEncoding`\r\n:c:var:`Py_FrozenFlag`\r\n:c:var:`Py_HasFileSystemDefaultEncoding`\r\n:c:var:`Py_HashRandomizationFlag`\r\n:c:var:`Py_IgnoreEnvironmentFlag`\r\n:c:var:`Py_InspectFlag`\r\n:c:var:`Py_InteractiveFlag`\r\n:c:var:`Py_IsolatedFlag`\r\n:c:var:`Py_LegacyWindowsFSEncodingFlag`\r\n:c:var:`Py_LegacyWindowsStdioFlag`\r\n:c:var:`Py_NoSiteFlag`\r\n:c:var:`Py_NoUserSiteDirectory`\r\n:c:var:`Py_OptimizeFlag`\r\n:c:var:`PyOS_InputHook`\r\n:c:var:`PyOS_ReadlineFunctionPointer`\r\n:c:var:`Py_QuietFlag`\r\n:c:var:`PyStructSequence_UnnamedField`\r\n:c:var:`PyType_Type`\r\n:c:var:`Py_UnbufferedStdioFlag`\r\n:c:var:`Py_UTF8Mode`\r\n:c:var:`Py_VerboseFlag`\r\n:c:var:`Py_Version`\r\n```\r\n\u003c/details\u003e\r\n\r\nIn some cases `:data:` (purposed for use with Python names) is used with a C name. It is definitely error.\r\n\r\nIn what cases should we use `:c:data:` and in what cases should we use  `:c:var:`? I do not see a system in the current use.\r\n\r\n\r\n\u003c!-- gh-linked-prs --\u003e\r\n### Linked PRs\r\n* gh-107092\r\n* gh-107113\r\n* gh-107121\r\n* gh-107129\r\n* gh-107138\r\n* gh-107063\n* gh-107310\n* gh-107311\n* gh-107312\n* gh-107313\n* gh-107318\n* gh-107330\n* gh-107331\n* gh-107378\n* gh-107379\n* gh-107384\n* gh-107385\n* gh-107416\n* gh-107417\n\u003c!-- /gh-linked-prs --\u003e\r\n","author":{"url":"https://github.com/serhiy-storchaka","@type":"Person","name":"serhiy-storchaka"},"datePublished":"2023-07-23T06:21:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/107091/cpython/issues/107091"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:64673f6d-ab01-cf87-2e7c-8480b18a7e77
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id99AE:3B507F:1E0D305:294E8D3:696ABCF4
html-safe-nonce804e6c362e127a92216461f8bb6f419aaae966972580db2a50f81bc128530ec4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OUFFOjNCNTA3RjoxRTBEMzA1OjI5NEU4RDM6Njk2QUJDRjQiLCJ2aXNpdG9yX2lkIjoiNDQzOTQ4NTA5NjA3ODc4NTc4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac24ac4247b1e5a38b46bbd844d1994348099eafff6bcd62758bd32e91cdeff528
hovercard-subject-tagissue:1817005773
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/python/cpython/107091/issue_layout
twitter:imagehttps://opengraph.githubassets.com/89d7cec922e494151ed0f2f051202d845d8ac6c03ff4b24a7bab6012b70d8d7b/python/cpython/issues/107091
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/89d7cec922e494151ed0f2f051202d845d8ac6c03ff4b24a7bab6012b70d8d7b/python/cpython/issues/107091
og:image:alt:c:member:, :c:data: and :c:var: are equivalent. I do not know whether there is a semantic difference between :c:data: and :c:var: (although I think that :c:member: is semantically different and sh...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameserhiy-storchaka
hostnamegithub.com
expected-hostnamegithub.com
None46ce962e0e18113ea447391b6ace8b02d4d2861e57b4fbab3658698f73d8855b
turbo-cache-controlno-preview
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
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
release30300f30bb3949de255e84a146706a3bdb5c19c9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/issues/107091#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F107091
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2Fpython%2Fcpython%2Fissues%2F107091
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=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/107091
Reloadhttps://github.com/python/cpython/issues/107091
Reloadhttps://github.com/python/cpython/issues/107091
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/issues/107091
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k https://github.com/login?return_to=%2Fpython%2Fcpython
Code https://github.com/python/cpython
Issues 5k+ https://github.com/python/cpython/issues
Pull requests 2.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/issues/107091
Insights https://github.com/python/cpython/pulse
Code https://github.com/python/cpython
Issues https://github.com/python/cpython/issues
Pull requests https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/107091
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/107091
Use the C domain roles consistently in the documentationhttps://github.com/python/cpython/issues/107091#top
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
https://github.com/serhiy-storchaka
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
on Jul 23, 2023https://github.com/python/cpython/issues/107091#issue-1817005773
gh-107091: Fix the use of some C domain roles #107092https://github.com/python/cpython/pull/107092
[3.12] gh-107091: Fix the use of some C domain roles (GH-107092) #107113https://github.com/python/cpython/pull/107113
[3.11] gh-107091: Fix the use of some C domain roles (GH-107092) #107121https://github.com/python/cpython/pull/107121
gh-107091: Fix some uses of :c:member: role #107129https://github.com/python/cpython/pull/107129
gh-107091: Fix some uses of :c:type: role #107138https://github.com/python/cpython/pull/107138
gh-107091: Use :c:var: consistently for Py_Version #107063https://github.com/python/cpython/pull/107063
[3.12] gh-107091: Fix some uses of :c:member: role (GH-107129) #107310https://github.com/python/cpython/pull/107310
[3.11] gh-107091: Fix some uses of :c:member: role (GH-107129) #107311https://github.com/python/cpython/pull/107311
[3.12] gh-107091: Fix some uses of :c:type: role (GH-107138) #107312https://github.com/python/cpython/pull/107312
[3.11] gh-107091: Fix some uses of :c:type: role (GH-107138) #107313https://github.com/python/cpython/pull/107313
gh-107091: Fix some uses of :attr: role #107318https://github.com/python/cpython/pull/107318
[3.12] gh-107091: Fix some uses of :attr: role (GH-107318) #107330https://github.com/python/cpython/pull/107330
[3.11] gh-107091: Fix some uses of :attr: role (GH-107318) #107331https://github.com/python/cpython/pull/107331
gh-107091: Fix some uses of :func: role #107378https://github.com/python/cpython/pull/107378
gh-107091: Fix some uses of :const: role #107379https://github.com/python/cpython/pull/107379
[3.12] gh-107091: Fix some uses of :const: role (GH-107379) #107384https://github.com/python/cpython/pull/107384
[3.11] gh-107091: Fix some uses of :const: role (GH-107379) #107385https://github.com/python/cpython/pull/107385
[3.12] gh-107091: Fix some uses of :func: role (GH-107378) #107416https://github.com/python/cpython/pull/107416
[3.11] gh-107091: Fix some uses of :func: role (GH-107378) #107417https://github.com/python/cpython/pull/107417
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
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.