| 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:0653b531-9049-41f0-e360-0fd084fb01f2 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | BC2E:2E9831:1A5DFFE:22D48AE:6B021845 |
| html-safe-nonce | 6ff8128125c03f010279a42707ed3cd856bc07b74afc2d56b3dbf3982f920012 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzJFOjJFOTgzMToxQTVERkZFOjIyRDQ4QUU6NkIwMjE4NDUiLCJ2aXNpdG9yX2lkIjoiMzI2NDExMDIyMzAwNzQ3ODQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3b62948595ae6abf9c0827be071d4715e515d36224693f14b65e77509e0e3d21 |
| hovercard-subject-tag | pull_request:4036560946 |
| 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/153587/files |
| twitter:image | https://avatars.githubusercontent.com/u/11718525?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/11718525?s=400&v=4 |
| og:image:alt | This adds the decoded source store, offset spans, and an offset-only cursor as the foundation for moving tokenizer state away from buffer pointers.
For example:
// Own decoded bytes by line.
_PyTok... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/153587/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F153587%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%2F153587%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/153587/files |
| Reload | https://github.com/python/cpython/pull/153587/files |
| Reload | https://github.com/python/cpython/pull/153587/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 |
| pablogsal | https://github.com/pablogsal |
| python:main | https://github.com/python/cpython/tree/main |
| pablogsal:gh-153569-tokenizer-offset-api | https://github.com/pablogsal/cpython/tree/gh-153569-tokenizer-offset-api |
|
Conversation
3
| https://github.com/python/cpython/pull/153587 |
|
Commits
3
| https://github.com/python/cpython/pull/153587/commits |
|
Checks
68
| https://github.com/python/cpython/pull/153587/checks |
|
Files changed
| https://github.com/python/cpython/pull/153587/files |
| Please reload this page | https://github.com/python/cpython/pull/153587/files |
|
gh-153569: Add tokenizer source and cursor primitives
| https://github.com/python/cpython/pull/153587/files#top |
|
Show all changes
3 commits
| https://github.com/python/cpython/pull/153587/files |
|
697e7dd
gh-153569: Add tokenizer source and cursor primitives
pablogsal Jul 11, 2026
| https://github.com/python/cpython/pull/153587/commits/697e7dd9882062ea0778eea04a1cc5cd8588f02b |
|
100072c
fixup! gh-153569: Add tokenizer source and cursor primitives
pablogsal Jul 18, 2026
| https://github.com/python/cpython/pull/153587/commits/100072cdf64821afd159058d88e7ddce60268518 |
|
4b0454f
fixup! gh-153569: Add tokenizer source and cursor primitives
pablogsal Jul 18, 2026
| https://github.com/python/cpython/pull/153587/commits/4b0454f54481c76371da6057600a95714f17fe1f |
|
Clear filters
| https://github.com/python/cpython/pull/153587/files |
| Please reload this page | https://github.com/python/cpython/pull/153587/files |
| Please reload this page | https://github.com/python/cpython/pull/153587/files |
|
test_tokenizer.py
| https://github.com/python/cpython/pull/153587/files#diff-16b4a247c227d32e31db7b6b107e9236edad213c710cb5b31584c846e93a533d |
|
Makefile.pre.in
| https://github.com/python/cpython/pull/153587/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
Setup.stdlib.in
| https://github.com/python/cpython/pull/153587/files#diff-93b54a98829ea89eaf6335c02f546511f7780d865131407436b10a401ecd375c |
|
_testinternalcapi.c
| https://github.com/python/cpython/pull/153587/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126 |
|
parts.h
| https://github.com/python/cpython/pull/153587/files#diff-41dbad38bccbb3dcd8994e2fe0e2673cab29faefc2912d1c02340e211ff8673f |
|
tokenizer.c
| https://github.com/python/cpython/pull/153587/files#diff-bf867c315e7bf23f02713dfa30288b5352e1b1cc050dfebb334287359d33d963 |
|
_testinternalcapi.vcxproj
| https://github.com/python/cpython/pull/153587/files#diff-08566dae0ca25227bd1cb8ccdf68f73345c4a4cfa5dedf19315359a4eef6c710 |
|
_testinternalcapi.vcxproj.filters
| https://github.com/python/cpython/pull/153587/files#diff-4fa7325f4c1045bd2dedb7c74bfcba90496a7e3d14083038fc1a6935ac6e8a50 |
|
pythoncore.vcxproj
| https://github.com/python/cpython/pull/153587/files#diff-4295039788386c2986b811f2a6b59cf088be59822b24b4f1243c9e9b184f65fb |
|
pythoncore.vcxproj.filters
| https://github.com/python/cpython/pull/153587/files#diff-9e715828befc9c50c8b483b06d4923cda0db44f57d0c20e6a6d428ba60bfa0c5 |
|
cursor.c
| https://github.com/python/cpython/pull/153587/files#diff-612535281447d780b732c38843952f91678c5d75d8396e55445dc375319d3813 |
|
cursor.h
| https://github.com/python/cpython/pull/153587/files#diff-f63563ab928ae9883992ec0dddbd66eab2ffd2abf172a22c91d754f7ac649f8c |
|
source.c
| https://github.com/python/cpython/pull/153587/files#diff-d091331acd32f48897fc1503341091ee6066cbe2208017651deef042b32273da |
|
source.h
| https://github.com/python/cpython/pull/153587/files#diff-033fac2d1c68ebec297cd0aaf7ee48c836b7ebab03362fcecc53cedcdac043d1 |
| Lib/test/test_capi/test_tokenizer.py | https://github.com/python/cpython/pull/153587/files#diff-16b4a247c227d32e31db7b6b107e9236edad213c710cb5b31584c846e93a533d |
|
View file
| https://github.com/pablogsal/cpython/blob/4b0454f54481c76371da6057600a95714f17fe1f/Lib/test/test_capi/test_tokenizer.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/153587/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L85 |
| Makefile.pre.in | https://github.com/python/cpython/pull/153587/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
View file
| https://github.com/pablogsal/cpython/blob/4b0454f54481c76371da6057600a95714f17fe1f/Makefile.pre.in |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/153587/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/153587/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
| https://github.com/python/cpython/pull/153587/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
| https://github.com/python/cpython/pull/153587/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
| https://github.com/python/cpython/pull/153587/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
| https://github.com/python/cpython/pull/153587/files#diff-1f0a8db227d22005511b0d90f5339b97db345917b863954b3b3ccb9ec308767c |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L87 |
| Modules/Setup.stdlib.in | https://github.com/python/cpython/pull/153587/files#diff-93b54a98829ea89eaf6335c02f546511f7780d865131407436b10a401ecd375c |
|
View file
| https://github.com/pablogsal/cpython/blob/4b0454f54481c76371da6057600a95714f17fe1f/Modules/Setup.stdlib.in |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/153587/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/153587/files#diff-93b54a98829ea89eaf6335c02f546511f7780d865131407436b10a401ecd375c |
|
| https://github.com/python/cpython/pull/153587/files#diff-93b54a98829ea89eaf6335c02f546511f7780d865131407436b10a401ecd375c |
| Modules/_testinternalcapi.c | https://github.com/python/cpython/pull/153587/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126 |
|
View file
| https://github.com/pablogsal/cpython/blob/4b0454f54481c76371da6057600a95714f17fe1f/Modules/_testinternalcapi.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/153587/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/153587/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126 |
|
| https://github.com/python/cpython/pull/153587/files#diff-687f4a736f1f6ad4b6cd4ff65c8e0113408304e8d65530dbd41b3f59a081a126 |
| Modules/_testinternalcapi/parts.h | https://github.com/python/cpython/pull/153587/files#diff-41dbad38bccbb3dcd8994e2fe0e2673cab29faefc2912d1c02340e211ff8673f |
|
View file
| https://github.com/pablogsal/cpython/blob/4b0454f54481c76371da6057600a95714f17fe1f/Modules/_testinternalcapi/parts.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/153587/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/153587/files#diff-41dbad38bccbb3dcd8994e2fe0e2673cab29faefc2912d1c02340e211ff8673f |
|
| https://github.com/python/cpython/pull/153587/files#diff-41dbad38bccbb3dcd8994e2fe0e2673cab29faefc2912d1c02340e211ff8673f |
| Modules/_testinternalcapi/tokenizer.c | https://github.com/python/cpython/pull/153587/files#diff-bf867c315e7bf23f02713dfa30288b5352e1b1cc050dfebb334287359d33d963 |
|
View file
| https://github.com/pablogsal/cpython/blob/4b0454f54481c76371da6057600a95714f17fe1f/Modules/_testinternalcapi/tokenizer.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/153587/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L190 |
| PCbuild/_testinternalcapi.vcxproj | https://github.com/python/cpython/pull/153587/files#diff-08566dae0ca25227bd1cb8ccdf68f73345c4a4cfa5dedf19315359a4eef6c710 |
|
View file
| https://github.com/pablogsal/cpython/blob/4b0454f54481c76371da6057600a95714f17fe1f/PCbuild/_testinternalcapi.vcxproj |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/153587/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/153587/files#diff-08566dae0ca25227bd1cb8ccdf68f73345c4a4cfa5dedf19315359a4eef6c710 |
|
| https://github.com/python/cpython/pull/153587/files#diff-08566dae0ca25227bd1cb8ccdf68f73345c4a4cfa5dedf19315359a4eef6c710 |
| Please reload this page | https://github.com/python/cpython/pull/153587/files |
| Please reload this page | https://github.com/python/cpython/pull/153587/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 |