René's URL Explorer Experiment


Title: Missing Signature Info for Builtin Exceptions in help() and Docs · Issue #111405 · python/cpython · GitHub

Open Graph Title: Missing Signature Info for Builtin Exceptions in help() and Docs · Issue #111405 · python/cpython

X Title: Missing Signature Info for Builtin Exceptions in help() and Docs · Issue #111405 · python/cpython

Description: Bug report Bug description: (I've tagged this as a "docs" issue because help() is arguably a part of the documentation. Also, some of the docs entries have a similar lack of details. I suppose that could be dealt with separately.) The he...

Open Graph Description: Bug report Bug description: (I've tagged this as a "docs" issue because help() is arguably a part of the documentation. Also, some of the docs entries have a similar lack of details. I suppose that...

X Description: Bug report Bug description: (I've tagged this as a "docs" issue because help() is arguably a part of the documentation. Also, some of the docs entries have a similar lack of details. ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Missing Signature Info for Builtin Exceptions in help() and Docs","articleBody":"# Bug report\r\n\r\n### Bug description:\r\n\r\n(I've tagged this as a \"docs\" issue because `help()` is arguably a part of the documentation.  Also, some of the docs entries have a similar lack of details.  I suppose that could be dealt with separately.)\r\n\r\nThe `help()` text for (*at least* some) builtin exceptions doesn't show the type-specific signature for `__init__()` (or `__new__()`), instead showing a generic one with `(self, /, *args, **kwargs)`.\r\n\r\nHere's an example (in the REPL) [^1]:\r\n\r\n```python\r\n>>> help(ExceptionGroup)\r\n | ...\r\n |  __init__(self, /, *args, **kwargs)\r\n |      Initialize self.  See help(type(self)) for accurate signature.\r\n | ...\r\n```\r\n\r\n(The `help()` entry for `__new__()` is likewise unhelpful.)\r\n\r\n[^1]: FYI, I don't mean to pick on `ExceptionGroup`.  It happened to be the one for which I first noticed the problem.\r\n\r\nThere is a similar lack of information in [the docs](https://docs.python.org/3/library/exceptions.html), though a handful of entries have at least some signature information.\r\n\r\nAll builtin exceptions (best effort catalog):\r\n\r\n| exception type | expected\\* (approximately)\u003cbr/>(incl. additional forms) | docs\u003cbr/>have\u003cbr/>sig |\r\n| --- | --- | --- |\r\n| Exception\u003cbr/>BaseException | `__init__(self, /, *args)` |  |\r\n| ExceptionGroup\u003cbr/>BaseExceptionGroup | `__init__(self, msg, excs, /)` | X† |\r\n| StopIteration | `__init__(self, value=None, /, *args)` |  |\r\n| SystemExit | `__init__(self, code=None, /, *args)` |  |\r\n| ImportError | `__init__(self, /, name=None, path=None, name_from=None)` |  |\r\n| OSError | `__init__(self, errno, strerror, filename=None, winerror=None, filename2=None, /)` | X† |\r\n|  ^^^^^ | `__init__(self, arg=None, /)` | X† |\r\n|  ^^^^^ | `__init__(self, /, *args)` | ‡ |\r\n| NameError | `__init__(self, /, *args, name=None)` |  |\r\n| AttributeError | `__init__(self, /, *args, name=None, obj=None)` |  |\r\n| SyntaxError | `__init__(self, msg, details, /)` | X† |\r\n| ^^^^^ | `__init__(self, msg=None, /, *args)` | ‡ |\r\n| UnicodeEncodeError | `__init__(self, encoding, obj, start, end, reason, /)` |  |\r\n| UnicodeDecodeError | `__init__(self, encoding, obj, start, end, reason, /)` |  |\r\n| UnicodeTranslateError | `__init__(self, obj, start, end, reason, /)` |  |\r\n| -- all others (?) -- | -- same as `Exception`/`BaseException` -- |  |\r\n\r\n\\* I derived expected signatures from the content of Objects/exceptions.c.\r\n† The doc entries for `OSError`, `ExceptionGroup`, and SyntaxError imply that they each take keyword arguments but they do not.\r\n‡ The doc entries for `OSError` and `SyntaxError` do not include the alternate signature.\r\n\r\n### CPython versions tested on:\r\n\r\nCPython main branch\r\n\r\n### Operating systems tested on:\r\n\r\n_No response_","author":{"url":"https://github.com/ericsnowcurrently","@type":"Person","name":"ericsnowcurrently"},"datePublished":"2023-10-27T16:48:23Z","url":"https://github.com/python/cpython/issues/111405"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ddd4762a-d818-ea02-eb2b-da3326fdf82f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id97FC:1A1C04:1EE606E:2A0DE9D:6B00176E
html-safe-nonce3e47e47bc22b7c738b9e9f50a04d9aff455f82b0eda105ae321882a938fd2df4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0ZDOjFBMUMwNDoxRUU2MDZFOjJBMERFOUQ6NkIwMDE3NkUiLCJ2aXNpdG9yX2lkIjoiNDI3MjEyMDEwNzU5NDk0NjQxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac058cf6e5a6046ef4541684e2f85ec24253472e08c59f0513a1bac1624e80061a
hovercard-subject-tagissue:1965867528
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/111405/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b6f441896cd2ffbe0e58678a67aeaf142a0573762a3e2ec3a5cc5c7b02cbb185/python/cpython/issues/111405
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b6f441896cd2ffbe0e58678a67aeaf142a0573762a3e2ec3a5cc5c7b02cbb185/python/cpython/issues/111405
og:image:altBug report Bug description: (I've tagged this as a "docs" issue because help() is arguably a part of the documentation. Also, some of the docs entries have a similar lack of details. I suppose that...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameericsnowcurrently
hostnamegithub.com
expected-hostnamegithub.com
Nonea2dd2291b1b13cc9c06f27ec92fa3dbaf34116fc24c9347b8539db61884c59f4
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
release70121d4e855ee0bb7b75cf15d061d91f8863c0f8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/111405#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F111405
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F111405
Sign uphttps://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/111405
Reloadhttps://github.com/python/cpython/issues/111405
Reloadhttps://github.com/python/cpython/issues/111405
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/111405
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/111405
Missing Signature Info for Builtin Exceptions in help() and Docshttps://github.com/python/cpython/issues/111405#top
3.11only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.11%22
3.12only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.12%22
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
https://github.com/ericsnowcurrently
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
on Oct 27, 2023https://github.com/python/cpython/issues/111405#issue-1965867528
1https://github.com/python/cpython/issues/111405#user-content-fn-1-4395d9bdc3189cb92ce3046582c8d332
the docshttps://docs.python.org/3/library/exceptions.html
↩https://github.com/python/cpython/issues/111405#user-content-fnref-1-4395d9bdc3189cb92ce3046582c8d332
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
3.11only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.11%22
3.12only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.12%22
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
on Oct 27, 2023https://github.com/python/cpython/issues/111405#event-10793843595
https://github.com/brian030128
brian030128https://github.com/brian030128
on Oct 29, 2023https://github.com/python/cpython/issues/111405#issuecomment-1784013128
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/111405
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/111405
3.11only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.11%22
3.12only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.12%22
3.13only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.13%22
docsDocumentation in the Doc dirhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22docs%22
interpreter-core(Objects, Python, Grammar, and Parser dirs)https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22interpreter-core%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%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.