René's URL Explorer Experiment


Title: bpo-37420: os.sched_setaffinity does not handle errors during iteration. by brandtbucher · Pull Request #14414 · python/cpython · GitHub

Open Graph Title: bpo-37420: os.sched_setaffinity does not handle errors during iteration. by brandtbucher · Pull Request #14414 · python/cpython

X Title: bpo-37420: os.sched_setaffinity does not handle errors during iteration. by brandtbucher · Pull Request #14414 · python/cpython

Description: This is related to bpo-37417: os.sched_setaffinity doesn't properly handle errors that arise during iteration of the mask argument: Python 3.9.0a0 (heads/master:d52a83a, Jun 26 2019, 15:13:41) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> bad_iter = map(int, "0X") >>> os.sched_setaffinity(0, bad_iter) ValueError: invalid literal for int() with base 10: 'X' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "", line 1, in SystemError: returned a result with an error set It looks like this bug is also present on all versions of Python 3. I've attached a patch with a fix and a regression test. https://bugs.python.org/issue37420

Open Graph Description: This is related to bpo-37417: os.sched_setaffinity doesn't properly handle errors that arise during iteration of the mask argument: Python 3.9.0a0 (heads/master:d52a83a, Jun 26 2019, 15:13:41) ...

X Description: This is related to bpo-37417: os.sched_setaffinity doesn't properly handle errors that arise during iteration of the mask argument: Python 3.9.0a0 (heads/master:d52a83a, Jun 26 2019, 15:13:...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9a4ef98f-b3a2-3d4b-52b7-8b4b23912c2f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBA9E:14415E:F41A9B:1624855:6A579BFA
html-safe-nonce856e7cb79518b00c5092fe7884d5402f5565f34ed272603a326e8404f3d9daca
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTlFOjE0NDE1RTpGNDFBOUI6MTYyNDg1NTo2QTU3OUJGQSIsInZpc2l0b3JfaWQiOiI2ODc3NzU2MDYwMzA2MjE3OTc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac77ed8f0f475436b0182405bda4959da8794c6e3939e3040090f8b161f8b19b3f
hovercard-subject-tagpull_request:292181301
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/14414/files
twitter:imagehttps://avatars.githubusercontent.com/u/40968415?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/40968415?s=400&v=4
og:image:altThis is related to bpo-37417: os.sched_setaffinity doesn't properly handle errors that arise during iteration of the mask argument: Python 3.9.0a0 (heads/master:d52a83a, Jun 26 2019, 15:13:41) ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None017a07c29bdd8a37b5907fc9a689338deb7103b5af7f56714193b2700229b3df
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release0dd6847d644323df8f8c1368c065f9f630095e3b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/14414/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F14414%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
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/enterprise/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%2Fpull%2F14414%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/14414/files
Reloadhttps://github.com/python/cpython/pull/14414/files
Reloadhttps://github.com/python/cpython/pull/14414/files
Please reload this pagehttps://github.com/python/cpython/pull/14414/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/14414/files
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 35k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 73.8k 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.3k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects https://github.com/python/cpython/projects
Security and quality 0 https://github.com/python/cpython/security
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 and quality https://github.com/python/cpython/security
Insights https://github.com/python/cpython/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
benjaminphttps://github.com/benjaminp
python:masterhttps://github.com/python/cpython/tree/master
brandtbucher:os-sched-setaffinityhttps://github.com/brandtbucher/cpython/tree/os-sched-setaffinity
Conversation 10 https://github.com/python/cpython/pull/14414
Commits 6 https://github.com/python/cpython/pull/14414/commits
Checks 0 https://github.com/python/cpython/pull/14414/checks
Files changed https://github.com/python/cpython/pull/14414/files
Please reload this pagehttps://github.com/python/cpython/pull/14414/files
bpo-37420: os.sched_setaffinity does not handle errors during iteration. https://github.com/python/cpython/pull/14414/files#top
Show all changes 6 commits https://github.com/python/cpython/pull/14414/files
498f7a9 Add a test for error handling in os.sched_setaffinity. brandtbucher Jun 26, 2019 https://github.com/python/cpython/pull/14414/commits/498f7a9c1e88bbfcb97dae41729a4c1b6d43c82c
2a1ed85 Fix error handling in os.sched_setaffinity. brandtbucher Jun 26, 2019 https://github.com/python/cpython/pull/14414/commits/2a1ed85aaaca2124d5c74ef4ca212242cc09f4d7
32652a3 📜🤖 Added by blurb_it. blurb-it[bot] Jun 26, 2019 https://github.com/python/cpython/pull/14414/commits/32652a3d708ddbb0e097e82dd95ea3ff14516686
7d2129d Move test from test_os.py to test_posix.py. brandtbucher Jun 27, 2019 https://github.com/python/cpython/pull/14414/commits/7d2129d703091511f92e3d65d07cee2226482077
385e964 Check for errors immediately after iterating. brandtbucher Jun 27, 2019 https://github.com/python/cpython/pull/14414/commits/385e96490c486e792e22680999814ae6c0c50268
655bb0e Add back stripped newline. brandtbucher Jun 27, 2019 https://github.com/python/cpython/pull/14414/commits/655bb0e2158812e2fb275d122b47a7fb711cede6
Clear filters https://github.com/python/cpython/pull/14414/files
Please reload this pagehttps://github.com/python/cpython/pull/14414/files
Please reload this pagehttps://github.com/python/cpython/pull/14414/files
test_posix.py https://github.com/python/cpython/pull/14414/files#diff-7463633f0a09a482722b0b4dd11801ac43b242b3810eb3a8d42b80f1a28f36a3
2019-06-26-22-25-05.bpo-37420.CxFJ09.rst https://github.com/python/cpython/pull/14414/files#diff-c71ed769b767e56734a427421fd48fac777c62a6d160aa0158d0e1901dc6d766
posixmodule.c https://github.com/python/cpython/pull/14414/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791
Lib/test/test_posix.pyhttps://github.com/python/cpython/pull/14414/files#diff-7463633f0a09a482722b0b4dd11801ac43b242b3810eb3a8d42b80f1a28f36a3
View file https://github.com/brandtbucher/cpython/blob/655bb0e2158812e2fb275d122b47a7fb711cede6/Lib/test/test_posix.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/14414/{{ revealButtonHref }}
https://github.com/python/cpython/pull/14414/files#diff-7463633f0a09a482722b0b4dd11801ac43b242b3810eb3a8d42b80f1a28f36a3
https://github.com/python/cpython/pull/14414/files#diff-7463633f0a09a482722b0b4dd11801ac43b242b3810eb3a8d42b80f1a28f36a3
Misc/NEWS.d/next/Library/2019-06-26-22-25-05.bpo-37420.CxFJ09.rsthttps://github.com/python/cpython/pull/14414/files#diff-c71ed769b767e56734a427421fd48fac777c62a6d160aa0158d0e1901dc6d766
View file https://github.com/brandtbucher/cpython/blob/655bb0e2158812e2fb275d122b47a7fb711cede6/Misc/NEWS.d/next/Library/2019-06-26-22-25-05.bpo-37420.CxFJ09.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/14414/{{ revealButtonHref }}
Modules/posixmodule.chttps://github.com/python/cpython/pull/14414/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791
View file https://github.com/brandtbucher/cpython/blob/655bb0e2158812e2fb275d122b47a7fb711cede6/Modules/posixmodule.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/14414/{{ revealButtonHref }}
https://github.com/python/cpython/pull/14414/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791
Please reload this pagehttps://github.com/python/cpython/pull/14414/files
https://github.com/python/cpython/pull/14414/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791
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.