René's URL Explorer Experiment


Title: Improve error messages of `curses` by indicating failed C function · Issue #125843 · python/cpython · GitHub

Open Graph Title: Improve error messages of `curses` by indicating failed C function · Issue #125843 · python/cpython

X Title: Improve error messages of `curses` by indicating failed C function · Issue #125843 · python/cpython

Description: Feature or enhancement Proposal: The curses module raises an exception curses.error with a message of the form "XXX() returned ERR" where XXX is generally the name of the C or Python function that was just called. Most of the time, XXX a...

Open Graph Description: Feature or enhancement Proposal: The curses module raises an exception curses.error with a message of the form "XXX() returned ERR" where XXX is generally the name of the C or Python function that ...

X Description: Feature or enhancement Proposal: The curses module raises an exception curses.error with a message of the form "XXX() returned ERR" where XXX is generally the name of the C or Python func...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve error messages of  `curses` by indicating failed C function","articleBody":"# Feature or enhancement\n\n### Proposal:\n\nThe `curses` module raises an exception `curses.error` with a message of the form \"XXX() returned ERR\" where XXX is generally the name of the C *or* Python function that was just called. Most of the time, XXX and the Python function that was called have the same name and XXX is a real curses C function or macro. However, in some cases, this is not the case and the actual curses function that was called has a different name.\n\nFor debugging purposes, I suggest adding an attribute to the exception class, say `.funcname` which holds the name of the macro / function that was called at runtime in the C code. This will help users debug issues. For compatibility reasons, I will *not* change the current error messages since this could break CI in the wild. In addition, I don't expect users to *extract* the function name from the error message (if they want to, they should use this new attribute).\n\nI considered also adding which *Python* function was the bad one, but since the exception is raised from a Python function, I think it's better not to do include an other attribute. If needed, we can always add it later but for now the curses C function name is more important.\n\n### Has this already been discussed elsewhere?\n\nThis is a minor feature, which does not need previous discussion elsewhere\n\n### Links to previous discussion of this feature:\n\n_No response_\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-125844\n* gh-134252\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/picnixz","@type":"Person","name":"picnixz"},"datePublished":"2024-10-22T14:20:25Z","url":"https://github.com/python/cpython/issues/125843"}

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:2ade12a1-4935-b59d-5e0c-2f5254863676
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBC62:1FDCFC:12534EE:1833496:6B065835
html-safe-noncee4eb4d28349b00987119932ebf75e18b255409a8e040738e7a95d8d0c9d09ac3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzYyOjFGRENGQzoxMjUzNEVFOjE4MzM0OTY6NkIwNjU4MzUiLCJ2aXNpdG9yX2lkIjoiMTE1MTE2MTAyMDc4MjYzMDk2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8f38f321c170fe9678bc769facdfdbf221f3a802f2e746e129b505f3c7962e90
hovercard-subject-tagissue:2605607739
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/125843/issue_layout
twitter:imagehttps://opengraph.githubassets.com/aad1a42387556794fe982373057f61615024de4530c3395446273fdfac48d7b7/python/cpython/issues/125843
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/aad1a42387556794fe982373057f61615024de4530c3395446273fdfac48d7b7/python/cpython/issues/125843
og:image:altFeature or enhancement Proposal: The curses module raises an exception curses.error with a message of the form "XXX() returned ERR" where XXX is generally the name of the C or Python function that ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepicnixz
hostnamegithub.com
expected-hostnamegithub.com
None6324e6ac990fb6befbec840cc0e102a1071c339bfe8f9826bb12de2e3ba1d297
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
release7f0aa75f4141d440c6110dc31af7ea7797abb6c4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/125843#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F125843
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%2F125843
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/125843
Reloadhttps://github.com/python/cpython/issues/125843
Reloadhttps://github.com/python/cpython/issues/125843
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/125843
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/125843
Improve error messages of curses by indicating failed C functionhttps://github.com/python/cpython/issues/125843#top
https://github.com/picnixz
extension-moduleshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
type-featurehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
https://github.com/picnixz
picnixzhttps://github.com/picnixz
on Oct 22, 2024https://github.com/python/cpython/issues/125843#issue-2605607739
gh-125843: indicate which C function caused a curses.error #125844https://github.com/python/cpython/pull/125844
gh-125843: fix test_curses.test_attributes on x86-64 macOS #134252https://github.com/python/cpython/pull/134252
picnixzhttps://github.com/picnixz
type-featurehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
extension-moduleshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
on Oct 22, 2024https://github.com/python/cpython/issues/125843#event-14786517904
picnixzhttps://github.com/picnixz
on Oct 22, 2024https://github.com/python/cpython/issues/125843#event-14786518057
picnixzhttps://github.com/picnixz
Curses issueshttps://github.com/orgs/python/projects/18
on Oct 22, 2024https://github.com/python/cpython/issues/125843#event-14786519675
picnixzhttps://github.com/picnixz
Curses issueshttps://github.com/orgs/python/projects/18
on Oct 22, 2024https://github.com/python/cpython/issues/125843
https://github.com/encukou
encukouhttps://github.com/encukou
on Oct 23, 2024https://github.com/python/cpython/issues/125843#issuecomment-2431498868
https://github.com/picnixz
picnixzhttps://github.com/picnixz
on Oct 23, 2024https://github.com/python/cpython/issues/125843#issuecomment-2431707951
https://github.com/encukou
encukouhttps://github.com/encukou
on Oct 23, 2024https://github.com/python/cpython/issues/125843#issuecomment-2431739600
https://github.com/picnixz
picnixzhttps://github.com/picnixz
on Oct 23, 2024https://github.com/python/cpython/issues/125843#issuecomment-2431772658
https://github.com/encukou
encukouhttps://github.com/encukou
on Oct 23, 2024https://github.com/python/cpython/issues/125843#issuecomment-2431830062
@Yhg1shttps://github.com/Yhg1s
https://github.com/picnixz
picnixzhttps://github.com/picnixz
on Apr 25, 2025https://github.com/python/cpython/issues/125843#issuecomment-2831284469
picnixzhttps://github.com/picnixz
on Apr 26, 2025https://github.com/python/cpython/issues/125843#event-17415249531
picnixzhttps://github.com/picnixz
on Apr 26, 2025https://github.com/python/cpython/issues/125843#event-17415250223
picnixzhttps://github.com/picnixz
on May 19, 2025https://github.com/python/cpython/issues/125843#event-17715685167
gh-125843: indicate which C function caused a `curses.error` (#125844)https://github.com/python/cpython/commit/ee36db550076e5a9185444ffbc53eaf8157ef04c
gh-125843https://github.com/python/cpython/issues/125843
#125844https://github.com/python/cpython/pull/125844
ee36db5https://github.com/python/cpython/commit/ee36db550076e5a9185444ffbc53eaf8157ef04c
https://github.com/picnixz
picnixzhttps://github.com/picnixz
on May 19, 2025https://github.com/python/cpython/issues/125843#issuecomment-2891547480
#133579https://github.com/python/cpython/issues/133579
picnixzhttps://github.com/picnixz
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 19, 2025https://github.com/python/cpython/issues/125843#event-17718118769
github-project-automationhttps://github.com/apps/github-project-automation
Curses issueshttps://github.com/orgs/python/projects/18
on May 19, 2025https://github.com/python/cpython/issues/125843
picnixzhttps://github.com/picnixz
on May 20, 2025https://github.com/python/cpython/issues/125843#event-17730194368
gh-125843: fix `test_curses.test_attributes` on x86-64 macOS (#134252)https://github.com/python/cpython/commit/e007e62ba7403575611145aa2e39900b5f4bc6bd
gh-125843https://github.com/python/cpython/issues/125843
#134252https://github.com/python/cpython/pull/134252
e007e62https://github.com/python/cpython/commit/e007e62ba7403575611145aa2e39900b5f4bc6bd
Pranjal095https://github.com/Pranjal095
on Jul 12, 2025https://github.com/python/cpython/issues/125843#event-18600174443
pythongh-125843: indicate which C function caused a `curses.error` (p…https://github.com/Pranjal095/cpython/commit/0b23603d52870c17a602b4185e65a3bc700bf9ae
pythongh-125843https://github.com/python/cpython/issues/125843
p…https://github.com/python/cpython/pull/125844
0b23603https://github.com/Pranjal095/cpython/commit/0b23603d52870c17a602b4185e65a3bc700bf9ae
pythongh-125843: fix `test_curses.test_attributes` on x86-64 macOS (p…https://github.com/Pranjal095/cpython/commit/3ab90e86a90d027bd62ab29e189ad7c5d2d5efa6
pythongh-125843https://github.com/python/cpython/issues/125843
p…https://github.com/python/cpython/pull/134252
3ab90e8https://github.com/Pranjal095/cpython/commit/3ab90e86a90d027bd62ab29e189ad7c5d2d5efa6
taegyunkimhttps://github.com/taegyunkim
on Aug 4, 2025https://github.com/python/cpython/issues/125843#event-18976818370
pythongh-125843: indicate which C function caused a `curses.error` (p…https://github.com/taegyunkim/cpython/commit/ec53a92493f5e0540f45a36542726bc19e17395e
pythongh-125843https://github.com/python/cpython/issues/125843
p…https://github.com/python/cpython/pull/125844
ec53a92https://github.com/taegyunkim/cpython/commit/ec53a92493f5e0540f45a36542726bc19e17395e
pythongh-125843: fix `test_curses.test_attributes` on x86-64 macOS (p…https://github.com/taegyunkim/cpython/commit/3fd8fd9e8b66e56760c121a9e3cd875b0c94220f
pythongh-125843https://github.com/python/cpython/issues/125843
p…https://github.com/python/cpython/pull/134252
3fd8fd9https://github.com/taegyunkim/cpython/commit/3fd8fd9e8b66e56760c121a9e3cd875b0c94220f
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/125843
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/125843
picnixzhttps://github.com/picnixz
extension-moduleshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22extension-modules%22
type-featurehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-feature%22
Curses issueshttps://github.com/orgs/python/projects/18
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.