René's URL Explorer Experiment


Title: [3.15] gh-154874: Fix the sign of curses.termattrs() (GH-154875) by sankalpsthakur · Pull Request #155548 · python/cpython · GitHub

Open Graph Title: [3.15] gh-154874: Fix the sign of curses.termattrs() (GH-154875) by sankalpsthakur · Pull Request #155548 · python/cpython

X Title: [3.15] gh-154874: Fix the sign of curses.termattrs() (GH-154875) by sankalpsthakur · Pull Request #155548 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Summary Backport of GH-154875 to 3.15. curses.termattrs() returns a chtype mask, but it was routed through an int to check for ERR. On a terminal that advertises A_ITALIC (topmost bit of a 32-bit m...

X Description: Summary Backport of GH-154875 to 3.15. curses.termattrs() returns a chtype mask, but it was routed through an int to check for ERR. On a terminal that advertises A_ITALIC (topmost bit of a 32-bit m...

Opengraph URL: https://github.com/python/cpython/pull/155548

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:9b2840ba-555a-7c21-c449-cef4368460ac
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB038:249987:B9C1D1:F8E67A:6B06498D
html-safe-nonced04c082abcfd763c3317b965fe98f071f6f4c8f9b94d452f0bdabfaf1d5bd539
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDM4OjI0OTk4NzpCOUMxRDE6RjhFNjdBOjZCMDY0OThEIiwidmlzaXRvcl9pZCI6IjY1ODEyOTcyMDQ0MTE5NDg5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6dd87d2533ff9db98a258779a4928d8704e8193be783fdfca3ac0d33ab561955
hovercard-subject-tagpull_request:4252012153
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/155548/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/1a254691908e0f43a6f6f297572996bc959b2fcf8b216fb4ce847d3c2ecd1ec7/python/cpython/pull/155548
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1a254691908e0f43a6f6f297572996bc959b2fcf8b216fb4ce847d3c2ecd1ec7/python/cpython/pull/155548
og:image:altSummary Backport of GH-154875 to 3.15. curses.termattrs() returns a chtype mask, but it was routed through an int to check for ERR. On a terminal that advertises A_ITALIC (topmost bit of a 32-bit m...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesankalpsthakur
hostnamegithub.com
expected-hostnamegithub.com
None772b6997ca4daa0428dd49a25d76052e765555ae560fe9c88517eb828bbd861e
turbo-cache-controlno-cache
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
releasef1f9a08f7c769a37f1dfc18ad43d463c222a7eea
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/155548#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F155548
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%2Fpull%2F155548
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/155548
Reloadhttps://github.com/python/cpython/pull/155548
Reloadhttps://github.com/python/cpython/pull/155548
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
serhiy-storchakahttps://github.com/serhiy-storchaka
python:3.15https://github.com/python/cpython/tree/3.15
sankalpsthakur:fix/154874-termattrs-backport-3.15https://github.com/sankalpsthakur/cpython/tree/fix/154874-termattrs-backport-3.15
Conversationhttps://github.com/python/cpython/pull/155548
Commits4 (4)https://github.com/python/cpython/pull/155548/commits
Checkshttps://github.com/python/cpython/pull/155548/checks
Files changedhttps://github.com/python/cpython/pull/155548/files
[3.15] gh-154874: Fix the sign of curses.termattrs() (GH-154875)https://github.com/python/cpython/pull/155548#top
serhiy-storchakahttps://github.com/serhiy-storchaka
python:3.15https://github.com/python/cpython/tree/3.15
sankalpsthakur:fix/154874-termattrs-backport-3.15https://github.com/sankalpsthakur/cpython/tree/fix/154874-termattrs-backport-3.15
https://github.com/sankalpsthakur
sankalpsthakurhttps://github.com/sankalpsthakur
Aug 11, 2026https://github.com/python/cpython/pull/155548#issue-5118820022
Please reload this pagehttps://github.com/python/cpython/pull/155548
GH-154875https://github.com/python/cpython/pull/154875
0b083c4https://github.com/python/cpython/commit/0b083c43a455fbdf5378495751e142ea83e294b0
#154874https://github.com/python/cpython/issues/154874
curses.termattrs() returns a negative value on italic terminals #154874https://github.com/python/cpython/issues/154874
Please reload this pagehttps://github.com/python/cpython/pull/155548
curses.termattrs() returns a negative value on italic terminals #154874 https://github.com/python/cpython/issues/154874
gh-154874: Fix the sign of curses.termattrs() #154875 https://github.com/python/cpython/pull/154875
https://github.com/fedonman
https://github.com/sankalpsthakur
[3.15]https://github.com/python/cpython/pull/155548/commits/225795ab21395a24f512f7366f45b4c976eaaa65
pythongh-154874https://github.com/python/cpython/issues/154874
: Fix the sign of curses.termattrs() (https://github.com/python/cpython/pull/155548/commits/225795ab21395a24f512f7366f45b4c976eaaa65
pythonGH-…https://github.com/python/cpython/pull/154875
225795ahttps://github.com/python/cpython/pull/155548/commits/225795ab21395a24f512f7366f45b4c976eaaa65
…154875https://github.com/python/cpython/pull/154875
0b083c4https://github.com/sankalpsthakur/cpython/commit/0b083c43a455fbdf5378495751e142ea83e294b0
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Aug 11, 2026https://github.com/python/cpython/pull/155548#event-29271786768
https://github.com/sankalpsthakur
sankalpsthakurhttps://github.com/sankalpsthakur
force-pushedhttps://github.com/python/cpython/compare/e5cf9684c2160113d273bb37034b764e264ed632..225795ab21395a24f512f7366f45b4c976eaaa65
e5cf968https://github.com/python/cpython/commit/e5cf9684c2160113d273bb37034b764e264ed632
225795ahttps://github.com/python/cpython/commit/225795ab21395a24f512f7366f45b4c976eaaa65
Compare https://github.com/python/cpython/compare/e5cf9684c2160113d273bb37034b764e264ed632..225795ab21395a24f512f7366f45b4c976eaaa65
August 11, 2026 09:47https://github.com/python/cpython/pull/155548#event-29271795189
https://github.com/sankalpsthakur
Merge branch '3.15' into fix/154874-termattrs-backport-3.15https://github.com/python/cpython/pull/155548/commits/6bb3ccd06c45961c044c635e83d60134a905aced
6bb3ccdhttps://github.com/python/cpython/pull/155548/commits/6bb3ccd06c45961c044c635e83d60134a905aced
https://github.com/apps/python-cla-bot
python-cla-bothttps://github.com/apps/python-cla-bot
Oct 7, 2026https://github.com/python/cpython/pull/155548#issuecomment-6029501854
Please reload this pagehttps://github.com/python/cpython/pull/155548
https://cla.python.org/
Please reload this pagehttps://github.com/python/cpython/pull/155548
https://github.com/sankalpsthakur
sankalpsthakurhttps://github.com/sankalpsthakur
force-pushedhttps://github.com/python/cpython/compare/9ba91b242e29989bf2b8275de13a9f186ffc69fd..6bb3ccd06c45961c044c635e83d60134a905aced
9ba91b2https://github.com/python/cpython/commit/9ba91b242e29989bf2b8275de13a9f186ffc69fd
6bb3ccdhttps://github.com/python/cpython/commit/6bb3ccd06c45961c044c635e83d60134a905aced
Compare https://github.com/python/cpython/compare/9ba91b242e29989bf2b8275de13a9f186ffc69fd..6bb3ccd06c45961c044c635e83d60134a905aced
October 7, 2026 02:26https://github.com/python/cpython/pull/155548#event-32653269137
https://github.com/sankalpsthakur
sankalpsthakurhttps://github.com/sankalpsthakur
Oct 12, 2026https://github.com/python/cpython/pull/155548#issuecomment-6134182051
Please reload this pagehttps://github.com/python/cpython/pull/155548
https://github.com/encukou
encukouhttps://github.com/encukou
Oct 13, 2026https://github.com/python/cpython/pull/155548#issuecomment-6148150509
@serhiy-storchakahttps://github.com/serhiy-storchaka
Please reload this pagehttps://github.com/python/cpython/pull/155548
https://github.com/sankalpsthakur
sankalpsthakurhttps://github.com/sankalpsthakur
Oct 13, 2026https://github.com/python/cpython/pull/155548#issuecomment-6150181697
Please reload this pagehttps://github.com/python/cpython/pull/155548
https://github.com/sankalpsthakur
Merge branch '3.15' into fix/154874-termattrs-backport-3.15https://github.com/python/cpython/pull/155548/commits/a85d8cf4a79b7ac96dd7c8047da8ed5dd76c8384
a85d8cfhttps://github.com/python/cpython/pull/155548/commits/a85d8cf4a79b7ac96dd7c8047da8ed5dd76c8384
https://github.com/sankalpsthakur
sankalpsthakurhttps://github.com/sankalpsthakur
force-pushedhttps://github.com/python/cpython/compare/1ee1af27af57622ef46ae880cf8855c434116634..a85d8cf4a79b7ac96dd7c8047da8ed5dd76c8384
1ee1af2https://github.com/python/cpython/commit/1ee1af27af57622ef46ae880cf8855c434116634
a85d8cfhttps://github.com/python/cpython/commit/a85d8cf4a79b7ac96dd7c8047da8ed5dd76c8384
Compare https://github.com/python/cpython/compare/1ee1af27af57622ef46ae880cf8855c434116634..a85d8cf4a79b7ac96dd7c8047da8ed5dd76c8384
October 13, 2026 16:33https://github.com/python/cpython/pull/155548#event-33152433252
https://github.com/sankalpsthakur
retrigger cihttps://github.com/python/cpython/pull/155548/commits/f1374468db3b63aa22e46d9687830e4f3d53ce5f
f137446https://github.com/python/cpython/pull/155548/commits/f1374468db3b63aa22e46d9687830e4f3d53ce5f
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Nov 24, 2026 https://github.com/python/cpython/pull/155548#pullrequestreview-6039069310
View reviewed changes https://github.com/python/cpython/pull/155548/files/f1374468db3b63aa22e46d9687830e4f3d53ce5f
serhiy-storchakahttps://github.com/serhiy-storchaka
https://github.com/python/cpython/pull/155548#pullrequestreview-6039069310
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/155548
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Nov 24, 2026https://github.com/python/cpython/pull/155548#event-37127123077
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Nov 24, 2026https://github.com/python/cpython/pull/155548#event-37127142072
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
fe1f5a5https://github.com/python/cpython/commit/fe1f5a5a22c6168a522c3c36a3b62ab9ed3092be
Nov 24, 2026https://github.com/python/cpython/pull/155548#event-37127248717
Please reload this pagehttps://github.com/python/cpython/pull/155548
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Nov 24, 2026https://github.com/python/cpython/pull/155548#issuecomment-7131308336
@sankalpsthakurhttps://github.com/sankalpsthakur
@serhiy-storchakahttps://github.com/serhiy-storchaka
Please reload this pagehttps://github.com/python/cpython/pull/155548
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Nov 24, 2026https://github.com/python/cpython/pull/155548#event-37127255885
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Nov 24, 2026https://github.com/python/cpython/pull/155548#issuecomment-7131312772
GH-162542https://github.com/python/cpython/pull/162542
3.14 branchhttps://github.com/python/cpython/tree/3.14
Please reload this pagehttps://github.com/python/cpython/pull/155548
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.14 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.14%22
Nov 24, 2026https://github.com/python/cpython/pull/155548#event-37127275367
https://github.com/serhiy-storchaka
serhiy-storchakahttps://github.com/serhiy-storchaka
Nov 24, 2026 https://github.com/python/cpython/pull/155548#ref-pullrequest-6581653411
[3.14] gh-154874: Fix the sign of curses.termattrs() (GH-154875) (GH-155548) #162542 https://github.com/python/cpython/pull/162542
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F155548
https://github.com/serhiy-storchaka
serhiy-storchaka https://github.com/serhiy-storchaka
https://github.com/python/cpython/pull/155548/files/f1374468db3b63aa22e46d9687830e4f3d53ce5f
Please reload this pagehttps://github.com/python/cpython/pull/155548
Please reload this pagehttps://github.com/python/cpython/pull/155548
https://github.com/sankalpsthakur
https://github.com/encukou
https://github.com/serhiy-storchaka
https://github.com/fedonman
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-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.