René's URL Explorer Experiment


Title: Support __text_signature__ generation for C extensions · Issue #593 · oracle/graalpython · GitHub

Open Graph Title: Support __text_signature__ generation for C extensions · Issue #593 · oracle/graalpython

X Title: Support __text_signature__ generation for C extensions · Issue #593 · oracle/graalpython

Description: The CPython has no "official" way to specify signatures in extension modules. I did (unsuccessful) attempt to address this issue in https://discuss.python.org/t/43914. One approach (e.g. sphinx-doc) is using the PEP 7-style docstrings: T...

Open Graph Description: The CPython has no "official" way to specify signatures in extension modules. I did (unsuccessful) attempt to address this issue in https://discuss.python.org/t/43914. One approach (e.g. sphinx-doc...

X Description: The CPython has no "official" way to specify signatures in extension modules. I did (unsuccessful) attempt to address this issue in https://discuss.python.org/t/43914. One approach (e.g. ...

Opengraph URL: https://github.com/oracle/graalpython/issues/593

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support __text_signature__ generation for C extensions","articleBody":"The CPython has no \"official\" way to specify signatures in extension modules.  I did (unsuccessful) attempt to address this issue in https://discuss.python.org/t/43914.\n\nOne approach (e.g. sphinx-doc) is using the [PEP 7](https://peps.python.org/pep-0007/#documentation-strings)-style docstrings:\n\u003e The first line of each function docstring should be a “signature line” that gives a brief synopsis of the arguments and return value.\n\nAnother one, used by CPython's builtin's and stdlib - fill the `__text_signature__` attribute for callables like:\n```\nfunction_name(arguments)\n--\n\nactual docstring, *without* PEP 7 \"signature line\".\n```\nThe ``function_name(arguments)`` line (with some specific syntax for the first function argument, you shouldn't care about) literally goes to the ``__text_signature__`` attribute.  While it's not a public API, hardly this interface will disappear soon.  Thus, some alternative Python implementation sometimes offer support for this way (though, incomplete, see e.g. pypy/pypy#5368).  Maybe GraalPy can too?\n\nIf no, maybe you could cut off all leading text from docstrings, before and including of the ``\\n--\\n\\n`` separator?  So, it will not appear in the help() output as now (using the python-gmp package as an example):\n```pycon\nPython 3.12.8 (Thu Oct 09 17:26:36 UTC 2025)\n[Graal, Oracle GraalVM, Java 25.0.1 (amd64)] on linux\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n\u003e\u003e\u003e from gmp import isqrt\n\u003e\u003e\u003e print(isqrt.__doc__)\nisqrt($module, n, /)\n--\n\nReturn the integer part of the square root of n.\n\u003e\u003e\u003e help(isqrt)\nHelp on built-in function isqrt in module gmp:\n\nisqrt(...)\n    isqrt($module, n, /)\n    --\n\n    Return the integer part of the square root of n.\n\n```","author":{"url":"https://github.com/skirpichev","@type":"Person","name":"skirpichev"},"datePublished":"2026-01-15T06:42:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/593/graalpython/issues/593"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7566c433-2bef-4b3a-5663-2c323d6f9269
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE890:60C6C:37A467:4B2E16:69696B9D
html-safe-nonce7d166ce258b66587f40378c88c52ef90ab7f8aa4625afdc8b8e655763cfb07e8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODkwOjYwQzZDOjM3QTQ2Nzo0QjJFMTY6Njk2OTZCOUQiLCJ2aXNpdG9yX2lkIjoiNDY0NTA1MjE5OTQ4NDM1MzQzNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac64cb3be3b05725a3da1387e4d99be4a48a95f7a924560d26d68ffedc23f1c780
hovercard-subject-tagissue:3816232263
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/oracle/graalpython/593/issue_layout
twitter:imagehttps://opengraph.githubassets.com/23aad56f626be05c912d8121307d8908df35e6981d6a4bedd981eb227269a091/oracle/graalpython/issues/593
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/23aad56f626be05c912d8121307d8908df35e6981d6a4bedd981eb227269a091/oracle/graalpython/issues/593
og:image:altThe CPython has no "official" way to specify signatures in extension modules. I did (unsuccessful) attempt to address this issue in https://discuss.python.org/t/43914. One approach (e.g. sphinx-doc...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameskirpichev
hostnamegithub.com
expected-hostnamegithub.com
Nonec6f193beb8ff08443adc07685d75302ab8aaf0a135f6e251c3ff3112c8deb881
turbo-cache-controlno-preview
go-importgithub.com/oracle/graalpython git https://github.com/oracle/graalpython.git
octolytics-dimension-user_id4430336
octolytics-dimension-user_loginoracle
octolytics-dimension-repository_id129883600
octolytics-dimension-repository_nwooracle/graalpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id129883600
octolytics-dimension-repository_network_root_nwooracle/graalpython
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
releaseec4d88fbe7ed62446d90b0a6d8e6db4248a8f8b8
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/oracle/graalpython/issues/593#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Foracle%2Fgraalpython%2Fissues%2F593
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%2Foracle%2Fgraalpython%2Fissues%2F593
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=oracle%2Fgraalpython
Reloadhttps://github.com/oracle/graalpython/issues/593
Reloadhttps://github.com/oracle/graalpython/issues/593
Reloadhttps://github.com/oracle/graalpython/issues/593
oracle https://github.com/oracle
graalpythonhttps://github.com/oracle/graalpython
Notifications https://github.com/login?return_to=%2Foracle%2Fgraalpython
Fork 140 https://github.com/login?return_to=%2Foracle%2Fgraalpython
Star 1.5k https://github.com/login?return_to=%2Foracle%2Fgraalpython
Code https://github.com/oracle/graalpython
Issues 56 https://github.com/oracle/graalpython/issues
Pull requests 4 https://github.com/oracle/graalpython/pulls
Discussions https://github.com/oracle/graalpython/discussions
Actions https://github.com/oracle/graalpython/actions
Projects 1 https://github.com/oracle/graalpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/oracle/graalpython/security
Please reload this pagehttps://github.com/oracle/graalpython/issues/593
Insights https://github.com/oracle/graalpython/pulse
Code https://github.com/oracle/graalpython
Issues https://github.com/oracle/graalpython/issues
Pull requests https://github.com/oracle/graalpython/pulls
Discussions https://github.com/oracle/graalpython/discussions
Actions https://github.com/oracle/graalpython/actions
Projects https://github.com/oracle/graalpython/projects
Security https://github.com/oracle/graalpython/security
Insights https://github.com/oracle/graalpython/pulse
New issuehttps://github.com/login?return_to=https://github.com/oracle/graalpython/issues/593
New issuehttps://github.com/login?return_to=https://github.com/oracle/graalpython/issues/593
Support __text_signature__ generation for C extensionshttps://github.com/oracle/graalpython/issues/593#top
https://github.com/skirpichev
https://github.com/skirpichev
skirpichevhttps://github.com/skirpichev
on Jan 15, 2026https://github.com/oracle/graalpython/issues/593#issue-3816232263
https://discuss.python.org/t/43914https://discuss.python.org/t/43914
PEP 7https://peps.python.org/pep-0007/#documentation-strings
pypy/pypy#5368https://github.com/pypy/pypy/issues/5368
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.