| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:588cff31-c47b-0de9-16a7-67ed77b890b6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E8AE:36611F:1119F0F:169C6CC:6B0652B9 |
| html-safe-nonce | 90eec3b4da31df8923017caede8e1fbb6ccccc48fd6f16caf74027aae7d5e4dc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEFFOjM2NjExRjoxMTE5RjBGOjE2OUM2Q0M6NkIwNjUyQjkiLCJ2aXNpdG9yX2lkIjoiNjIyODE4MTEwMDQ4MTg5MzA0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e4f7e6b01867c6360b40e22779ac103d5ac0edd122938dc4e7eb914bcbc164ed |
| hovercard-subject-tag | pull_request:5462227991 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/162510/files |
| twitter:image | https://avatars.githubusercontent.com/u/3266662?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3266662?s=400&v=4 |
| og:image:alt | Fixes #149452
Issue: gh-149452 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6324e6ac990fb6befbec840cc0e102a1071c339bfe8f9826bb12de2e3ba1d297 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7f0aa75f4141d440c6110dc31af7ea7797abb6c4 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/162510/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F162510%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F162510%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 |
| Reload | https://github.com/python/cpython/pull/162510/files |
| Reload | https://github.com/python/cpython/pull/162510/files |
| Reload | https://github.com/python/cpython/pull/162510/files |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | 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/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| itamarst | https://github.com/itamarst |
| python:main | https://github.com/python/cpython/tree/main |
| itamarst:149452-cgroups-process_count | https://github.com/itamarst/cpython/tree/149452-cgroups-process_count |
|
Conversation
33
| https://github.com/python/cpython/pull/162510 |
|
Commits
17
| https://github.com/python/cpython/pull/162510/commits |
|
Checks
56
| https://github.com/python/cpython/pull/162510/checks |
|
Files changed
| https://github.com/python/cpython/pull/162510/files |
| Please reload this page | https://github.com/python/cpython/pull/162510/files |
|
gh-149452: os.process_cpu_count() now respects cgroups
| https://github.com/python/cpython/pull/162510/files#top |
|
Show all changes
17 commits
| https://github.com/python/cpython/pull/162510/files |
|
9cc6993
Preliminary test for respecting cgroups in process_cpu_count()
itamarst Nov 23, 2026
| https://github.com/python/cpython/pull/162510/commits/9cc699320222512df8ab62e33b3607d3bf8df190 |
|
b32eb61
Sketch of cgroups implementation for process_cpu_count()
itamarst Nov 23, 2026
| https://github.com/python/cpython/pull/162510/commits/b32eb6119233c5255153323b0f885aa14ac2884f |
|
5e5e3f3
Extend testing
itamarst Nov 23, 2026
| https://github.com/python/cpython/pull/162510/commits/5e5e3f3b26276aa17a233416d93af4aab0017696 |
|
4b4fef7
Documentation
itamarst Nov 23, 2026
| https://github.com/python/cpython/pull/162510/commits/4b4fef767d7dbd0a150809812fc48a013473bbb7 |
|
d87dc8f
Add changelog entry
itamarst Nov 23, 2026
| https://github.com/python/cpython/pull/162510/commits/d87dc8f2c45c0de406fb6605f12b3bf73d64a2ba |
|
c087aaa
Edits
itamarst Nov 23, 2026
| https://github.com/python/cpython/pull/162510/commits/c087aaa0c530824e5c510494ce336aed0b19690f |
|
aed27cd
Wrap
itamarst Nov 23, 2026
| https://github.com/python/cpython/pull/162510/commits/aed27cde4cb986e4db95dda5e65cc27d54d8ef03 |
|
ca83a22
Apply batched suggestions from code review
itamarst Nov 24, 2026
| https://github.com/python/cpython/pull/162510/commits/ca83a22fb1027d9dcfd9f9714b5217684bba82ed |
|
e124535
Explicitly return None
itamarst Nov 24, 2026
| https://github.com/python/cpython/pull/162510/commits/e1245352e7349edb1034e62d8e6cc1acc1cdf2e9 |
|
9f63b4d
Lazy imports
itamarst Nov 24, 2026
| https://github.com/python/cpython/pull/162510/commits/9f63b4d6ec569d1690a70a38d5c7e547bb705b35 |
|
f07acca
Handle return of None from cpu_count(), theoretically possible
itamarst Nov 24, 2026
| https://github.com/python/cpython/pull/162510/commits/f07acca2df7f42e29d5c731f0a4d1dfa3b295d40 |
|
8f1bb3c
Add update of change
itamarst Nov 24, 2026
| https://github.com/python/cpython/pull/162510/commits/8f1bb3c66d9775a8e0eb2ca5aceefe2d1533b996 |
|
833fcaf
Feature, not fix
itamarst Nov 24, 2026
| https://github.com/python/cpython/pull/162510/commits/833fcaf0b3de095ae9e403ebb9710cb3e244afe9 |
|
5bdfa8a
Split into its own function, unit test
itamarst Nov 24, 2026
| https://github.com/python/cpython/pull/162510/commits/5bdfa8ae77c7b5f3cbfb50ffdc30c648ca73312c |
|
87dd48f
Don't call cpu_count() in this function
itamarst Nov 24, 2026
| https://github.com/python/cpython/pull/162510/commits/87dd48f6bfcd7be6c057f5f3980edf2f6881802c |
|
5b97143
Add tests for missing files, and for parsing /proc/mounts
itamarst Nov 24, 2026
| https://github.com/python/cpython/pull/162510/commits/5b97143169d8ddd7c94469d0f54d73da3dbf940c |
|
d47c4dc
Move some testing out of end-to-end and into direct testing
itamarst Nov 24, 2026
| https://github.com/python/cpython/pull/162510/commits/d47c4dcf17dc5f9b63be9b0b7262dc2861860445 |
|
Clear filters
| https://github.com/python/cpython/pull/162510/files |
| Please reload this page | https://github.com/python/cpython/pull/162510/files |
| Please reload this page | https://github.com/python/cpython/pull/162510/files |
|
os.rst
| https://github.com/python/cpython/pull/162510/files#diff-cd9132e5234678864807ae34a75c5d4d6b894b31c327a4d3620fbd0c37eec16e |
|
os.py
| https://github.com/python/cpython/pull/162510/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431 |
|
test_os.py
| https://github.com/python/cpython/pull/162510/files#diff-0c3c0e7d77a166e9089c5ddcc9d2db7c4fab9528044dec1fda4b3a6be569f784 |
|
2026-11-23-17-03-23.gh-issue-149452.zKhaUP.rst
| https://github.com/python/cpython/pull/162510/files#diff-7084481867f4880908254568151319d055598a2c58bd08f4cf4945b753e1927b |
| Doc/library/os.rst | https://github.com/python/cpython/pull/162510/files#diff-cd9132e5234678864807ae34a75c5d4d6b894b31c327a4d3620fbd0c37eec16e |
|
View file
| https://github.com/python/cpython/blob/d47c4dcf17dc5f9b63be9b0b7262dc2861860445/Doc/library/os.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/162510/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/162510/files#diff-cd9132e5234678864807ae34a75c5d4d6b894b31c327a4d3620fbd0c37eec16e |
| Please reload this page | https://github.com/python/cpython/pull/162510/files |
|
| https://github.com/python/cpython/pull/162510/files#diff-cd9132e5234678864807ae34a75c5d4d6b894b31c327a4d3620fbd0c37eec16e |
|
| https://github.com/python/cpython/pull/162510/files#diff-cd9132e5234678864807ae34a75c5d4d6b894b31c327a4d3620fbd0c37eec16e |
| Lib/os.py | https://github.com/python/cpython/pull/162510/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431 |
|
View file
| https://github.com/python/cpython/blob/d47c4dcf17dc5f9b63be9b0b7262dc2861860445/Lib/os.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/162510/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/162510/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431 |
|
| https://github.com/python/cpython/pull/162510/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431 |
|
| https://github.com/python/cpython/pull/162510/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431 |
| vstinner | https://github.com/vstinner |
| Nov 24, 2026 | https://github.com/python/cpython/pull/162510/files#r4682079041 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/162510/files |
| itamarst | https://github.com/itamarst |
| Nov 24, 2026 | https://github.com/python/cpython/pull/162510/files#r4682317543 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/162510/files |
|
| https://github.com/python/cpython/pull/162510/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431 |
| Please reload this page | https://github.com/python/cpython/pull/162510/files |
| Lib/test/test_os/test_os.py | https://github.com/python/cpython/pull/162510/files#diff-0c3c0e7d77a166e9089c5ddcc9d2db7c4fab9528044dec1fda4b3a6be569f784 |
|
View file
| https://github.com/python/cpython/blob/d47c4dcf17dc5f9b63be9b0b7262dc2861860445/Lib/test/test_os/test_os.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/162510/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/162510/files#diff-0c3c0e7d77a166e9089c5ddcc9d2db7c4fab9528044dec1fda4b3a6be569f784 |
|
| https://github.com/python/cpython/pull/162510/files#diff-0c3c0e7d77a166e9089c5ddcc9d2db7c4fab9528044dec1fda4b3a6be569f784 |
|
| https://github.com/python/cpython/pull/162510/files#diff-0c3c0e7d77a166e9089c5ddcc9d2db7c4fab9528044dec1fda4b3a6be569f784 |
|
| https://github.com/python/cpython/pull/162510/files#diff-0c3c0e7d77a166e9089c5ddcc9d2db7c4fab9528044dec1fda4b3a6be569f784 |
| picnixz | https://github.com/picnixz |
| Nov 24, 2026 | https://github.com/python/cpython/pull/162510/files#r4679482980 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/162510/files |
| itamarst | https://github.com/itamarst |
| Nov 24, 2026 | https://github.com/python/cpython/pull/162510/files#r4682300056 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| https://www.freedesktop.org/software/systemd/man/latest/systemd.scope.html | https://www.freedesktop.org/software/systemd/man/latest/systemd.scope.html |
| Please reload this page | https://github.com/python/cpython/pull/162510/files |
| picnixz | https://github.com/picnixz |
| Nov 24, 2026 | https://github.com/python/cpython/pull/162510/files#r4682477693 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/162510/files |
| itamarst | https://github.com/itamarst |
| Nov 24, 2026 | https://github.com/python/cpython/pull/162510/files#r4683650018 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/162510/files |
| vstinner | https://github.com/vstinner |
| Nov 24, 2026 | https://github.com/python/cpython/pull/162510/files#r4684020330 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/162510/files |
| itamarst | https://github.com/itamarst |
| Nov 24, 2026 | https://github.com/python/cpython/pull/162510/files#r4684965532 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/162510/files |
|
| https://github.com/python/cpython/pull/162510/files#diff-0c3c0e7d77a166e9089c5ddcc9d2db7c4fab9528044dec1fda4b3a6be569f784 |
| Misc/NEWS.d/next/Library/2026-11-23-17-03-23.gh-issue-149452.zKhaUP.rst | https://github.com/python/cpython/pull/162510/files#diff-7084481867f4880908254568151319d055598a2c58bd08f4cf4945b753e1927b |
|
View file
| https://github.com/python/cpython/blob/d47c4dcf17dc5f9b63be9b0b7262dc2861860445/Misc/NEWS.d/next/Library/2026-11-23-17-03-23.gh-issue-149452.zKhaUP.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/162510/{{ revealButtonHref }} |
| Please reload this page | https://github.com/python/cpython/pull/162510/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |