| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:de44261c-8dad-1d01-9c16-f76425bd4c0b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E826:21FEDA:1C4FFF1:26F23AC:696ABA5A |
| html-safe-nonce | 727383cefa668e8a1c27e947a07ae124070978f796676c4d985920b8176a7790 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODI2OjIxRkVEQToxQzRGRkYxOjI2RjIzQUM6Njk2QUJBNUEiLCJ2aXNpdG9yX2lkIjoiNjcxOTEzODIxMDc2NTI1NzMwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 78b63f35e76ceedcdeb674ebd6a31777a1bf69fe4e17b9d70998cd04865e8014 |
| hovercard-subject-tag | pull_request:1404313169 |
| 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/106003/files |
| twitter:image | https://avatars.githubusercontent.com/u/40968415?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40968415?s=400&v=4 |
| og:image:alt | ...and specialize them!
This adds a new TO_BOOL bytecode that prefixes all UNARY_NOT, POP_JUMP_IF_TRUE, and POP_JUMP_IF_FALSE instructions, which now require an exact boolean. We also use a spare b... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 46ce962e0e18113ea447391b6ace8b02d4d2861e57b4fbab3658698f73d8855b |
| 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 | 30300f30bb3949de255e84a146706a3bdb5c19c9 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/106003/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F106003%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%2F106003%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/106003/files |
| Reload | https://github.com/python/cpython/pull/106003/files |
| Reload | https://github.com/python/cpython/pull/106003/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/106003/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/106003/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 |
| brandtbucher | https://github.com/brandtbucher |
| python:main | https://github.com/python/cpython/tree/main |
| brandtbucher:to-bool | https://github.com/brandtbucher/cpython/tree/to-bool |
|
Conversation
16
| https://github.com/python/cpython/pull/106003 |
|
Commits
18
| https://github.com/python/cpython/pull/106003/commits |
|
Checks
0
| https://github.com/python/cpython/pull/106003/checks |
|
Files changed
| https://github.com/python/cpython/pull/106003/files |
| Please reload this page | https://github.com/python/cpython/pull/106003/files |
|
GH-106008: Make implicit boolean conversions explicit
| https://github.com/python/cpython/pull/106003/files#top |
|
Show all changes
18 commits
| https://github.com/python/cpython/pull/106003/files |
|
69781b4
Make boolean conversions in branches explicit
brandtbucher Jun 6, 2023
| https://github.com/python/cpython/pull/106003/commits/69781b4244a9485837b5eda473533e5c280068c0 |
|
5289c7f
Specialize UNARY_NOT
brandtbucher Jun 6, 2023
| https://github.com/python/cpython/pull/106003/commits/5289c7f69e7e2ba75cafa076da55dd9f179cae7c |
|
7e5c9df
Remove unused stats
brandtbucher Jun 7, 2023
| https://github.com/python/cpython/pull/106003/commits/7e5c9df329695174378971dfe106e73ad368455a |
|
27bb264
Make UNARY_NOT_BOOL a little bit slicker
brandtbucher Jun 7, 2023
| https://github.com/python/cpython/pull/106003/commits/27bb264e8247af28f554ea620389191fb7e78bbe |
|
0463633
Replace UNARY_NOT with TO_BOOL
brandtbucher Jun 9, 2023
| https://github.com/python/cpython/pull/106003/commits/0463633b0f9583ad7aa322af4e9c0228949eed20 |
|
d2932a1
Catch up with main
brandtbucher Jun 21, 2023
| https://github.com/python/cpython/pull/106003/commits/d2932a1104df74a415b06fbcd85e9dc58f9413f7 |
|
47ec38f
Branchless branching
brandtbucher Jun 21, 2023
| https://github.com/python/cpython/pull/106003/commits/47ec38f00f9a153473b19013cf71261550bbbe6a |
|
a0bd53a
Add a "boolean conversion" bit to COMPARE_OP
brandtbucher Jun 21, 2023
| https://github.com/python/cpython/pull/106003/commits/a0bd53a31edc9594e561b076b9bb23f3ae0be949 |
|
bab539b
More stats for heap types
brandtbucher Jun 21, 2023
| https://github.com/python/cpython/pull/106003/commits/bab539bf50f769912c96f51ae427d4bac122e5d4 |
|
757b1cc
Specialize TO_BOOL_ALWAYS_TRUE
brandtbucher Jun 21, 2023
| https://github.com/python/cpython/pull/106003/commits/757b1ccf830e46f7ee68e7e2e2c12869d81fc81c |
|
f9fa498
Fix refleak and error handling
brandtbucher Jun 21, 2023
| https://github.com/python/cpython/pull/106003/commits/f9fa498686bbcb7e1b98a1e2769c5b1d37f26e9a |
|
0c14344
Catch up with main
brandtbucher Jun 22, 2023
| https://github.com/python/cpython/pull/106003/commits/0c14344e7e746dae65e09061fcb52051dcd1c9bd |
|
d314078
Cleanup
brandtbucher Jun 23, 2023
| https://github.com/python/cpython/pull/106003/commits/d31407825cac7b01443449db0636e6b1af6dbb5d |
|
9aa83b5
blurb add
brandtbucher Jun 23, 2023
| https://github.com/python/cpython/pull/106003/commits/9aa83b5ef2259f12203218710a1b9085e980f3b4 |
|
a76f11d
Docs
brandtbucher Jun 23, 2023
| https://github.com/python/cpython/pull/106003/commits/a76f11dcceb1ba9d28e72d21f2a8eccf0fc16507 |
|
c2d4a33
Clean up some commnts
brandtbucher Jun 23, 2023
| https://github.com/python/cpython/pull/106003/commits/c2d4a33f51c200f3c70c3b4f84fd808ecd122b3b |
|
7638b76
Add cast
brandtbucher Jun 29, 2023
| https://github.com/python/cpython/pull/106003/commits/7638b76e18d78fab6c5d91a997ad8e4f2d97d40d |
|
6b4a598
Catch up with main
brandtbucher Jun 29, 2023
| https://github.com/python/cpython/pull/106003/commits/6b4a5986c06132ff279e132751a79cbcab3ffacd |
|
Clear filters
| https://github.com/python/cpython/pull/106003/files |
| Please reload this page | https://github.com/python/cpython/pull/106003/files |
| Please reload this page | https://github.com/python/cpython/pull/106003/files |
|
.gitattributes
| https://github.com/python/cpython/pull/106003/files#diff-618cd5b83d62060ba3d027e314a21ceaf75d36067ff820db126642944145393e |
|
dis.rst
| https://github.com/python/cpython/pull/106003/files#diff-eaa488fc50d23b30ca8b24ab19e9c91c1c941339847af993e908f006eec0653b |
|
pycore_code.h
| https://github.com/python/cpython/pull/106003/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8 |
|
pycore_opcode.h
| https://github.com/python/cpython/pull/106003/files#diff-7b986d4fccffcb2f2af4ec495559b2f0dc2e393e38f95e8ca3ef48e559177530 |
|
opcode.h
| https://github.com/python/cpython/pull/106003/files#diff-1cd1f0bb26c3fbaa279f83ee2bfe1d9072da7af07407111c79039c66034c57ed |
|
_opcode_metadata.py
| https://github.com/python/cpython/pull/106003/files#diff-3f2acff9cdbb005de538e3ba43dc12406bf414047d7d018476bac0048b5056e4 |
|
dis.py
| https://github.com/python/cpython/pull/106003/files#diff-96747735ee3c8aed3dd0f4c1b1ab0310eeb344577b14887cc9f6605892df47a8 |
|
_bootstrap_external.py
| https://github.com/python/cpython/pull/106003/files#diff-efefe383b3a81d16150c280db0b64eed7569254299418f64cc0d749f8e16f3a4 |
|
opcode.py
| https://github.com/python/cpython/pull/106003/files#diff-7681b13de881a13601ca56b73d052d032be48da4256df4f2f09e0474b0c1cbeb |
|
test_compiler_codegen.py
| https://github.com/python/cpython/pull/106003/files#diff-9987be07783ee714c99f2e5097be8290413c27fe4e5249cafbf408194f74df6a |
|
test_dis.py
| https://github.com/python/cpython/pull/106003/files#diff-fd7b118a01a9695dfa16eea9381d3c7b0652e1b7b55f51ff052a1f620d175642 |
|
2023-06-22-17-37-35.gh-issue-106003.2Vc_Tw.rst
| https://github.com/python/cpython/pull/106003/files#diff-0c7cdc296645e7ac24ef352d90abbabf983b923a88166b8056d9de6d3db0e6c8 |
|
bytecodes.c
| https://github.com/python/cpython/pull/106003/files#diff-729a985b0cb8b431cb291f1edb561bbbfea22e3f8c262451cd83328a0936a342 |
|
compile.c
| https://github.com/python/cpython/pull/106003/files#diff-ebc983d9f91e5bcf73500e377ac65e85863c4f77fd5b6b6caf4fcdf7c0f0b057 |
|
executor_cases.c.h
| https://github.com/python/cpython/pull/106003/files#diff-a1c3430c42a66c16e6d2e154491a6da993b187b27c628545a12a02c7b2a06b81 |
|
flowgraph.c
| https://github.com/python/cpython/pull/106003/files#diff-3cbf15668c31488528b7ab0f903c674a0ecf550f4f53c1be6cf8cd965246c2a0 |
|
generated_cases.c.h
| https://github.com/python/cpython/pull/106003/files#diff-4ef46fa654f95502e49a24f7dc8ee31a4cac9b3433fe9cd2b2d4dd78cfbad448 |
|
opcode_metadata.h
| https://github.com/python/cpython/pull/106003/files#diff-f862bc60824529a25ba378be850ecc6762f03c6c944266d30ac7172d10132498 |
|
opcode_targets.h
| https://github.com/python/cpython/pull/106003/files#diff-d3363a4083b77b9157d0bf07c2e87f3d3464a8b4360d5d23b07bbb23061f007a |
|
specialize.c
| https://github.com/python/cpython/pull/106003/files#diff-22e653d878778ca28317261f7826545288d02fd9980cf485d0329f28a34993f2 |
| .gitattributes | https://github.com/python/cpython/pull/106003/files#diff-618cd5b83d62060ba3d027e314a21ceaf75d36067ff820db126642944145393e |
|
View file
| https://github.com/brandtbucher/cpython/blob/6b4a5986c06132ff279e132751a79cbcab3ffacd/.gitattributes |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/106003/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/106003/files#diff-618cd5b83d62060ba3d027e314a21ceaf75d36067ff820db126642944145393e |
|
| https://github.com/python/cpython/pull/106003/files#diff-618cd5b83d62060ba3d027e314a21ceaf75d36067ff820db126642944145393e |
| Doc/library/dis.rst | https://github.com/python/cpython/pull/106003/files#diff-eaa488fc50d23b30ca8b24ab19e9c91c1c941339847af993e908f006eec0653b |
|
View file
| https://github.com/brandtbucher/cpython/blob/6b4a5986c06132ff279e132751a79cbcab3ffacd/Doc/library/dis.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/106003/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/106003/files#diff-eaa488fc50d23b30ca8b24ab19e9c91c1c941339847af993e908f006eec0653b |
|
| https://github.com/python/cpython/pull/106003/files#diff-eaa488fc50d23b30ca8b24ab19e9c91c1c941339847af993e908f006eec0653b |
|
| https://github.com/python/cpython/pull/106003/files#diff-eaa488fc50d23b30ca8b24ab19e9c91c1c941339847af993e908f006eec0653b |
|
| https://github.com/python/cpython/pull/106003/files#diff-eaa488fc50d23b30ca8b24ab19e9c91c1c941339847af993e908f006eec0653b |
|
| https://github.com/python/cpython/pull/106003/files#diff-eaa488fc50d23b30ca8b24ab19e9c91c1c941339847af993e908f006eec0653b |
|
| https://github.com/python/cpython/pull/106003/files#diff-eaa488fc50d23b30ca8b24ab19e9c91c1c941339847af993e908f006eec0653b |
|
| https://github.com/python/cpython/pull/106003/files#diff-eaa488fc50d23b30ca8b24ab19e9c91c1c941339847af993e908f006eec0653b |
|
| https://github.com/python/cpython/pull/106003/files#diff-eaa488fc50d23b30ca8b24ab19e9c91c1c941339847af993e908f006eec0653b |
| Include/internal/pycore_code.h | https://github.com/python/cpython/pull/106003/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8 |
|
View file
| https://github.com/brandtbucher/cpython/blob/6b4a5986c06132ff279e132751a79cbcab3ffacd/Include/internal/pycore_code.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/106003/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/106003/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8 |
|
| https://github.com/python/cpython/pull/106003/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8 |
|
| https://github.com/python/cpython/pull/106003/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8 |
|
| https://github.com/python/cpython/pull/106003/files#diff-97ea1759f82531a45fa685065ff86bc1077c3ab3d5f65220eea48b7730032bc8 |
| Include/internal/pycore_opcode.h | https://github.com/python/cpython/pull/106003/files#diff-7b986d4fccffcb2f2af4ec495559b2f0dc2e393e38f95e8ca3ef48e559177530 |
|
View file
| https://github.com/brandtbucher/cpython/blob/6b4a5986c06132ff279e132751a79cbcab3ffacd/Include/internal/pycore_opcode.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/106003/files |
| Please reload this page | https://github.com/python/cpython/pull/106003/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 |