| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:861dcd88-d9f5-ddac-31be-8db7da77749d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D4D0:31FE0A:145B7B0:1C69963:696A4154 |
| html-safe-nonce | 642e9505b7a00dfc75caa99ef03343e3594d58d4ef0f605297b22a66704a7dc7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEQwOjMxRkUwQToxNDVCN0IwOjFDNjk5NjM6Njk2QTQxNTQiLCJ2aXNpdG9yX2lkIjoiODYxNjA2MTAzODc0MzkyOTE3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fc7d6dde0c2683fd84fa547d690dc687abaedcc5d77fa7868ad0923f06dca83c |
| hovercard-subject-tag | pull_request:112067790 |
| 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/771/files |
| twitter:image | https://avatars.githubusercontent.com/u/402777?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/402777?s=400&v=4 |
| og:image:alt | https://bugs.python.org/issue29882
https://bugs.python.org/issue29882 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 321736bfdb3f591415ae895a0459bec204b26a76caf47ba5c980634cfacc4538 |
| 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 | 13581a31d51edf4a3aca179e10890a4d4f9b6d76 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/771/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F771%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| 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 |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | 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/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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%2F771%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/771/files |
| Reload | https://github.com/python/cpython/pull/771/files |
| Reload | https://github.com/python/cpython/pull/771/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/771/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
33.9k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.1k
| 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.1k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
31
| https://github.com/python/cpython/projects |
|
Security
Uh oh!
There was an error while loading. Please reload this page.
| https://github.com/python/cpython/security |
| Please reload this page | https://github.com/python/cpython/pull/771/files |
|
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
| 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 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 |
| mdickinson | https://github.com/mdickinson |
| python:master | https://github.com/python/cpython/tree/master |
| niklasf:bpo-29882-popcount | https://github.com/niklasf/cpython/tree/bpo-29882-popcount |
|
Conversation
55
| https://github.com/python/cpython/pull/771 |
|
Commits
13
| https://github.com/python/cpython/pull/771/commits |
|
Checks
0
| https://github.com/python/cpython/pull/771/checks |
|
Files changed
| https://github.com/python/cpython/pull/771/files |
| Please reload this page | https://github.com/python/cpython/pull/771/files |
|
bpo-29882: Add an efficient popcount method for integers
| https://github.com/python/cpython/pull/771/files#top |
|
Show all changes
13 commits
| https://github.com/python/cpython/pull/771/files |
|
74e3ea6
bpo-29882: Add an efficient popcount method for integers
niklasf Mar 10, 2017
| https://github.com/python/cpython/pull/771/commits/74e3ea676590c5d55ae5c31d6d457784ffecb7ea |
|
16cc8e5
Merge remote-tracking branch 'upstream/master' into bpo-29882-popcount
mdickinson May 26, 2020
| https://github.com/python/cpython/pull/771/commits/16cc8e54c6955774038ccc11e3b53501d342ce82 |
|
19da190
Update 'sign bit' and versionadded in docs
mdickinson May 26, 2020
| https://github.com/python/cpython/pull/771/commits/19da190d38ef0753ac6f6ff075e7544def9b0bc7 |
|
070ac45
Add entry to whatsnew document
mdickinson May 26, 2020
| https://github.com/python/cpython/pull/771/commits/070ac455e2c6fed94fea6cf89cd13f9b5fb12bda |
|
b87f162
Doc: use positive example, mention population count
mdickinson May 27, 2020
| https://github.com/python/cpython/pull/771/commits/b87f1621aea6152743be0aff4fb68bcb707b7932 |
|
48084e7
Minor cleanups of the core code
mdickinson May 27, 2020
| https://github.com/python/cpython/pull/771/commits/48084e75790a44f36bc61ab3488e0d118e52c476 |
|
4c6819a
Fix conflicts with master
mdickinson May 27, 2020
| https://github.com/python/cpython/pull/771/commits/4c6819af76fd15ff10cc90923c06d436f4575ac1 |
|
729737c
Move popcount_digit closer to where it's used
mdickinson May 27, 2020
| https://github.com/python/cpython/pull/771/commits/729737cc83d09ed9384693a8dccb8bf6969a621c |
|
79f4d16
Use z instead of self after conversion
mdickinson May 27, 2020
| https://github.com/python/cpython/pull/771/commits/79f4d165f8c412cf486ed629eae548bd293742bf |
|
e3228cf
Add 'absolute value' and 'population count' to docstring
mdickinson May 27, 2020
| https://github.com/python/cpython/pull/771/commits/e3228cf8ae46a4d0dcde0725ff4032f77e0d0967 |
|
a0fed82
Fix clinic error about missing summary line
mdickinson May 27, 2020
| https://github.com/python/cpython/pull/771/commits/a0fed82ba1d7dc8cb4c96d78c7930f1f573bf340 |
|
46d8bc9
Merge remote-tracking branch 'upstream/master' into bpo-29882-popcount
mdickinson May 29, 2020
| https://github.com/python/cpython/pull/771/commits/46d8bc916774f0709a086b3bb4e0efea97434732 |
|
3e8422b
Ensure popcount_digit is portable with 64-bit ints
mdickinson May 29, 2020
| https://github.com/python/cpython/pull/771/commits/3e8422bb6c9fd0cdc4381815fca613e6975ee582 |
|
Clear filters
| https://github.com/python/cpython/pull/771/files |
| Please reload this page | https://github.com/python/cpython/pull/771/files |
| Please reload this page | https://github.com/python/cpython/pull/771/files |
|
stdtypes.rst
| https://github.com/python/cpython/pull/771/files#diff-08a31a70dd1f6d97aa8dacdce77db4de04c700d9949be1af611a595186aad5b3 |
|
3.10.rst
| https://github.com/python/cpython/pull/771/files#diff-a68d5b2117cfed2ddb0b199e367c22ce9c1427d4a016277eafddb551ca4f250c |
|
test_doctest.py
| https://github.com/python/cpython/pull/771/files#diff-2752e009dea2759fb0a5a0866446e8bbd3f5ed30c030b26d252d7a1178b413e7 |
|
test_long.py
| https://github.com/python/cpython/pull/771/files#diff-02037b51ab56d36386bd847e681b34c3d6603b5ec033cfea65fc92357697a478 |
|
2019-06-02-11-29-15.bpo-29882.AkRzjb.rst
| https://github.com/python/cpython/pull/771/files#diff-b923d5bf44d6c67eb9e0aed6fd93b2514fdaec1d91de4b39cdd78cbc642fcd4b |
|
longobject.c.h
| https://github.com/python/cpython/pull/771/files#diff-b4a585c360d3d585918431469fae0431e4cd4974b13531bb9e7d1b173e77d8fc |
|
longobject.c
| https://github.com/python/cpython/pull/771/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
| Doc/library/stdtypes.rst | https://github.com/python/cpython/pull/771/files#diff-08a31a70dd1f6d97aa8dacdce77db4de04c700d9949be1af611a595186aad5b3 |
|
View file
| https://github.com/niklasf/cpython/blob/3e8422bb6c9fd0cdc4381815fca613e6975ee582/Doc/library/stdtypes.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/771/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/771/files#diff-08a31a70dd1f6d97aa8dacdce77db4de04c700d9949be1af611a595186aad5b3 |
| Please reload this page | https://github.com/python/cpython/pull/771/files |
|
| https://github.com/python/cpython/pull/771/files#diff-08a31a70dd1f6d97aa8dacdce77db4de04c700d9949be1af611a595186aad5b3 |
| Doc/whatsnew/3.10.rst | https://github.com/python/cpython/pull/771/files#diff-a68d5b2117cfed2ddb0b199e367c22ce9c1427d4a016277eafddb551ca4f250c |
|
View file
| https://github.com/niklasf/cpython/blob/3e8422bb6c9fd0cdc4381815fca613e6975ee582/Doc/whatsnew/3.10.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/771/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/771/files#diff-a68d5b2117cfed2ddb0b199e367c22ce9c1427d4a016277eafddb551ca4f250c |
|
| https://github.com/python/cpython/pull/771/files#diff-a68d5b2117cfed2ddb0b199e367c22ce9c1427d4a016277eafddb551ca4f250c |
| Lib/test/test_doctest.py | https://github.com/python/cpython/pull/771/files#diff-2752e009dea2759fb0a5a0866446e8bbd3f5ed30c030b26d252d7a1178b413e7 |
|
View file
| https://github.com/niklasf/cpython/blob/3e8422bb6c9fd0cdc4381815fca613e6975ee582/Lib/test/test_doctest.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/771/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/771/files#diff-2752e009dea2759fb0a5a0866446e8bbd3f5ed30c030b26d252d7a1178b413e7 |
|
| https://github.com/python/cpython/pull/771/files#diff-2752e009dea2759fb0a5a0866446e8bbd3f5ed30c030b26d252d7a1178b413e7 |
|
| https://github.com/python/cpython/pull/771/files#diff-2752e009dea2759fb0a5a0866446e8bbd3f5ed30c030b26d252d7a1178b413e7 |
| Lib/test/test_long.py | https://github.com/python/cpython/pull/771/files#diff-02037b51ab56d36386bd847e681b34c3d6603b5ec033cfea65fc92357697a478 |
|
View file
| https://github.com/niklasf/cpython/blob/3e8422bb6c9fd0cdc4381815fca613e6975ee582/Lib/test/test_long.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/771/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/771/files#diff-02037b51ab56d36386bd847e681b34c3d6603b5ec033cfea65fc92357697a478 |
|
| https://github.com/python/cpython/pull/771/files#diff-02037b51ab56d36386bd847e681b34c3d6603b5ec033cfea65fc92357697a478 |
| Misc/NEWS.d/next/Core and Builtins/2019-06-02-11-29-15.bpo-29882.AkRzjb.rst | https://github.com/python/cpython/pull/771/files#diff-b923d5bf44d6c67eb9e0aed6fd93b2514fdaec1d91de4b39cdd78cbc642fcd4b |
|
View file
| https://github.com/niklasf/cpython/blob/3e8422bb6c9fd0cdc4381815fca613e6975ee582/Misc/NEWS.d/next/Core%20and%20Builtins/2019-06-02-11-29-15.bpo-29882.AkRzjb.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/771/{{ revealButtonHref }} |
| Objects/clinic/longobject.c.h | https://github.com/python/cpython/pull/771/files#diff-b4a585c360d3d585918431469fae0431e4cd4974b13531bb9e7d1b173e77d8fc |
|
View file
| https://github.com/niklasf/cpython/blob/3e8422bb6c9fd0cdc4381815fca613e6975ee582/Objects/clinic/longobject.c.h |
|
Open in desktop
| https://desktop.github.com |
| how customized files appear on GitHub | https://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github |
| Please reload this page | https://github.com/python/cpython/pull/771/files |
| Objects/longobject.c | https://github.com/python/cpython/pull/771/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
View file
| https://github.com/niklasf/cpython/blob/3e8422bb6c9fd0cdc4381815fca613e6975ee582/Objects/longobject.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/771/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/771/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
| Please reload this page | https://github.com/python/cpython/pull/771/files |
| vstinner | https://github.com/vstinner |
| May 27, 2020 | https://github.com/python/cpython/pull/771/files#r431102722 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/771/files |
| vstinner | https://github.com/vstinner |
| May 27, 2020 | https://github.com/python/cpython/pull/771/files#r431103753 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/771/files |
| Please reload this page | https://github.com/python/cpython/pull/771/files |
|
| https://github.com/python/cpython/pull/771/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/771/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| https://github.com/python/cpython/pull/771/files#diff-1a6e70e2beeecad88840c67284ac4d54a36998029244771fcc820e801390726a |
|
| 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 |