| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f61afd19-d6b8-acec-f50a-78e17020dc07 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B298:196750:AC30CC:EA0BEF:6969E719 |
| html-safe-nonce | 8903663b5a3c311f1e8c08368b75e3b0d62d0414ba443f4277919293313200ae |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjk4OjE5Njc1MDpBQzMwQ0M6RUEwQkVGOjY5NjlFNzE5IiwidmlzaXRvcl9pZCI6IjI0NTA0OTA4OTUyNjE4ODYyMzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1954173c89431249aa8eaf6d4fe7667136b07ae04d136e706955dec84bf264d1 |
| hovercard-subject-tag | pull_request:425646126 |
| 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/20556/files |
| twitter:image | https://avatars.githubusercontent.com/u/1623689?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1623689?s=400&v=4 |
| og:image:alt | https://bugs.python.org/issue4356 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| 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 | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/20556/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F20556%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%2F20556%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/20556/files |
| Reload | https://github.com/python/cpython/pull/20556/files |
| Reload | https://github.com/python/cpython/pull/20556/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/20556/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/20556/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 |
| rhettinger | https://github.com/rhettinger |
| python:master | https://github.com/python/cpython/tree/master |
| rhettinger:bisect_key | https://github.com/rhettinger/cpython/tree/bisect_key |
|
Conversation
21
| https://github.com/python/cpython/pull/20556 |
|
Commits
7
| https://github.com/python/cpython/pull/20556/commits |
|
Checks
0
| https://github.com/python/cpython/pull/20556/checks |
|
Files changed
| https://github.com/python/cpython/pull/20556/files |
| Please reload this page | https://github.com/python/cpython/pull/20556/files |
|
bpo-4356: Add key function support to the bisect module
| https://github.com/python/cpython/pull/20556/files#top |
|
Show all changes
7 commits
| https://github.com/python/cpython/pull/20556/files |
|
2d1a404
Python version, C version, and tests. Docs still needed
rhettinger May 31, 2020
| https://github.com/python/cpython/pull/20556/commits/2d1a404b0fdfe4120fef8d8cdf8abc21f28166fb |
|
9c9b275
Add documentation
rhettinger May 31, 2020
| https://github.com/python/cpython/pull/20556/commits/9c9b27510c72fc07aacc6f3bef1922b37c557db7 |
|
5f2e4e5
Add a blurb
rhettinger May 31, 2020
| https://github.com/python/cpython/pull/20556/commits/5f2e4e541da00d0d366799ef7539824447c33fe5 |
|
92c40cb
Add spacing around the colon in the in-line code fragments
rhettinger May 31, 2020
| https://github.com/python/cpython/pull/20556/commits/92c40cb325efdf9dd19b2d86b42c89b63e540faa |
|
bdfc074
Silence spurious warning from the doc build
rhettinger May 31, 2020
| https://github.com/python/cpython/pull/20556/commits/bdfc0747097f8a92ce17713e5ab6c0b52d104ae4 |
|
5e3e5b9
Fix typo
rhettinger Oct 19, 2020
| https://github.com/python/cpython/pull/20556/commits/5e3e5b98241d23d60a8d4372a047df2a30639f83 |
|
899767c
Fix typo
rhettinger Oct 19, 2020
| https://github.com/python/cpython/pull/20556/commits/899767c7e070935bca5d4cdb00b5040aca99b125 |
|
Clear filters
| https://github.com/python/cpython/pull/20556/files |
| Please reload this page | https://github.com/python/cpython/pull/20556/files |
| Please reload this page | https://github.com/python/cpython/pull/20556/files |
|
bisect.rst
| https://github.com/python/cpython/pull/20556/files#diff-899bd352a1639103d5ddb6b07ca5efa8745a0ebe1cba0e2e76ab4849eedef239 |
|
susp-ignored.csv
| https://github.com/python/cpython/pull/20556/files#diff-f2d07d8e818b46b42f9fff17a09058c554e8cb6baa7fbfbdf77b266c97155f4e |
|
bisect.py
| https://github.com/python/cpython/pull/20556/files#diff-27c0815358fb68d216eea2ba65e65b66b1501e8d67449fee59930ca7275bb5bc |
|
test_bisect.py
| https://github.com/python/cpython/pull/20556/files#diff-dad8c2451c7aeba9a4205cb7e9de2a92b91f42072c42fbcc0c0f16b03f7fe95c |
|
2020-05-31-10-48-47.bpo-4356.P8kXqp.rst
| https://github.com/python/cpython/pull/20556/files#diff-1826cd0c2228c5c893031c5b2a37028fc09e5d99e88885d02608820f11473556 |
|
_bisectmodule.c
| https://github.com/python/cpython/pull/20556/files#diff-02d3dd896d6d030e5c6c3e0961f9a4760a37b50bb05a2d89e4ab627a8f1a7b9f |
|
_bisectmodule.c.h
| https://github.com/python/cpython/pull/20556/files#diff-3be6df3e584883e9543c212ccde5becf7bd5a568e70cdfa8bcd9175f779d11ff |
| Doc/library/bisect.rst | https://github.com/python/cpython/pull/20556/files#diff-899bd352a1639103d5ddb6b07ca5efa8745a0ebe1cba0e2e76ab4849eedef239 |
|
View file
| https://github.com/rhettinger/cpython/blob/899767c7e070935bca5d4cdb00b5040aca99b125/Doc/library/bisect.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/20556/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/20556/files#diff-899bd352a1639103d5ddb6b07ca5efa8745a0ebe1cba0e2e76ab4849eedef239 |
|
| https://github.com/python/cpython/pull/20556/files#diff-899bd352a1639103d5ddb6b07ca5efa8745a0ebe1cba0e2e76ab4849eedef239 |
|
| https://github.com/python/cpython/pull/20556/files#diff-899bd352a1639103d5ddb6b07ca5efa8745a0ebe1cba0e2e76ab4849eedef239 |
|
| https://github.com/python/cpython/pull/20556/files#diff-899bd352a1639103d5ddb6b07ca5efa8745a0ebe1cba0e2e76ab4849eedef239 |
|
| https://github.com/python/cpython/pull/20556/files#diff-899bd352a1639103d5ddb6b07ca5efa8745a0ebe1cba0e2e76ab4849eedef239 |
|
| https://github.com/python/cpython/pull/20556/files#diff-899bd352a1639103d5ddb6b07ca5efa8745a0ebe1cba0e2e76ab4849eedef239 |
| Doc/tools/susp-ignored.csv | https://github.com/python/cpython/pull/20556/files#diff-f2d07d8e818b46b42f9fff17a09058c554e8cb6baa7fbfbdf77b266c97155f4e |
|
View file
| https://github.com/rhettinger/cpython/blob/899767c7e070935bca5d4cdb00b5040aca99b125/Doc/tools/susp-ignored.csv |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/20556/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/20556/files#diff-f2d07d8e818b46b42f9fff17a09058c554e8cb6baa7fbfbdf77b266c97155f4e |
|
| https://github.com/python/cpython/pull/20556/files#diff-f2d07d8e818b46b42f9fff17a09058c554e8cb6baa7fbfbdf77b266c97155f4e |
| Lib/bisect.py | https://github.com/python/cpython/pull/20556/files#diff-27c0815358fb68d216eea2ba65e65b66b1501e8d67449fee59930ca7275bb5bc |
|
View file
| https://github.com/rhettinger/cpython/blob/899767c7e070935bca5d4cdb00b5040aca99b125/Lib/bisect.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/20556/{{ revealButtonHref }} |
| remilapeyre | https://github.com/remilapeyre |
| May 31, 2020 | https://github.com/python/cpython/pull/20556/files#r432997024 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/20556/files |
| dimaqq | https://github.com/dimaqq |
| Jun 1, 2020 | https://github.com/python/cpython/pull/20556/files#r433000207 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/20556/files |
| rhettinger | https://github.com/rhettinger |
| Oct 19, 2020 | https://github.com/python/cpython/pull/20556/files#r508096471 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/python/cpython/pull/20556/files |
| grantjenks | https://github.com/grantjenks |
| Oct 20, 2020 | https://github.com/python/cpython/pull/20556/files#r508210489 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| sortedcontainers | http://www.grantjenks.com/docs/sortedcontainers/ |
| SortedKeyList | http://www.grantjenks.com/docs/sortedcontainers/sortedlist.html#sortedcontainers.SortedKeyList |
| Please reload this page | https://github.com/python/cpython/pull/20556/files |
|
| https://github.com/python/cpython/pull/20556/files#diff-27c0815358fb68d216eea2ba65e65b66b1501e8d67449fee59930ca7275bb5bc |
|
| https://github.com/python/cpython/pull/20556/files#diff-27c0815358fb68d216eea2ba65e65b66b1501e8d67449fee59930ca7275bb5bc |
|
| https://github.com/python/cpython/pull/20556/files#diff-27c0815358fb68d216eea2ba65e65b66b1501e8d67449fee59930ca7275bb5bc |
|
| https://github.com/python/cpython/pull/20556/files#diff-27c0815358fb68d216eea2ba65e65b66b1501e8d67449fee59930ca7275bb5bc |
| Lib/test/test_bisect.py | https://github.com/python/cpython/pull/20556/files#diff-dad8c2451c7aeba9a4205cb7e9de2a92b91f42072c42fbcc0c0f16b03f7fe95c |
|
View file
| https://github.com/rhettinger/cpython/blob/899767c7e070935bca5d4cdb00b5040aca99b125/Lib/test/test_bisect.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/20556/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/20556/files#diff-dad8c2451c7aeba9a4205cb7e9de2a92b91f42072c42fbcc0c0f16b03f7fe95c |
|
| https://github.com/python/cpython/pull/20556/files#diff-dad8c2451c7aeba9a4205cb7e9de2a92b91f42072c42fbcc0c0f16b03f7fe95c |
| Misc/NEWS.d/next/Library/2020-05-31-10-48-47.bpo-4356.P8kXqp.rst | https://github.com/python/cpython/pull/20556/files#diff-1826cd0c2228c5c893031c5b2a37028fc09e5d99e88885d02608820f11473556 |
|
View file
| https://github.com/rhettinger/cpython/blob/899767c7e070935bca5d4cdb00b5040aca99b125/Misc/NEWS.d/next/Library/2020-05-31-10-48-47.bpo-4356.P8kXqp.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/20556/{{ revealButtonHref }} |
| Please reload this page | https://github.com/python/cpython/pull/20556/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 |