René's URL Explorer Experiment


Title: gh-153569: Add tokenizer source and cursor primitives by pablogsal · Pull Request #153587 · python/cpython · GitHub

Open Graph Title: gh-153569: Add tokenizer source and cursor primitives by pablogsal · Pull Request #153587 · python/cpython

X Title: gh-153569: Add tokenizer source and cursor primitives by pablogsal · Pull Request #153587 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: 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...

X Description: 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...

Opengraph URL: https://github.com/python/cpython/pull/153587

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:83909733-26f8-bb44-a84b-6f914f780b68
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAEE6:14700E:39A50F6:4933E58:6B01F703
html-safe-noncefdb1a660f1fc7ca20f3d8b09d61465bd433aabbbf3ca4d789f65202bfdad38c5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUU2OjE0NzAwRTozOUE1MEY2OjQ5MzNFNTg6NkIwMUY3MDMiLCJ2aXNpdG9yX2lkIjoiMTk5ODU5OTc3MjQxNTU4ODA5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0391d1f633b26a7934ddb8fc322c33a0e759f48089cd4fd14689eb7d5383c071
hovercard-subject-tagpull_request:4036560946
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/153587/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/fb6fc2f49eefb4fb2586e34399317b64b343bd44c519183191bf5cb50144b7b4/python/cpython/pull/153587
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fb6fc2f49eefb4fb2586e34399317b64b343bd44c519183191bf5cb50144b7b4/python/cpython/pull/153587
og:image:altThis 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:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepablogsal
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/153587#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F153587
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F153587
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/153587
Reloadhttps://github.com/python/cpython/pull/153587
Reloadhttps://github.com/python/cpython/pull/153587
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
pablogsalhttps://github.com/pablogsal
python:mainhttps://github.com/python/cpython/tree/main
pablogsal:gh-153569-tokenizer-offset-apihttps://github.com/pablogsal/cpython/tree/gh-153569-tokenizer-offset-api
Conversationhttps://github.com/python/cpython/pull/153587
Commits3 (3)https://github.com/python/cpython/pull/153587/commits
Checkshttps://github.com/python/cpython/pull/153587/checks
Files changedhttps://github.com/python/cpython/pull/153587/files
gh-153569: Add tokenizer source and cursor primitiveshttps://github.com/python/cpython/pull/153587#top
pablogsalhttps://github.com/pablogsal
python:mainhttps://github.com/python/cpython/tree/main
pablogsal:gh-153569-tokenizer-offset-apihttps://github.com/pablogsal/cpython/tree/gh-153569-tokenizer-offset-api
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Jul 11, 2026https://github.com/python/cpython/pull/153587#issue-4863743160
Please reload this pagehttps://github.com/python/cpython/pull/153587
Base the tokenizer API on source offsets #153569https://github.com/python/cpython/issues/153569
Please reload this pagehttps://github.com/python/cpython/pull/153587
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jul 11, 2026 https://github.com/python/cpython/pull/153587#ref-issue-4862561196
Base the tokenizer API on source offsets #153569 https://github.com/python/cpython/issues/153569
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
July 11, 2026 19:26https://github.com/python/cpython/pull/153587#event-27859632787
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
AA-Turnerhttps://github.com/AA-Turner
emmatypinghttps://github.com/emmatyping
ericsnowcurrentlyhttps://github.com/ericsnowcurrently
erlend-aaslandhttps://github.com/erlend-aasland
itamarohttps://github.com/itamaro
lysnikolaouhttps://github.com/lysnikolaou
code ownershttps://github.com/python/cpython/blob/a2d3787105d1f1a5efd0bcf5ccc6b17f5a17d8e8/.github/CODEOWNERS#L189
July 11, 2026 19:26https://github.com/python/cpython/pull/153587#event-27859632980
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jul 11, 2026https://github.com/python/cpython/pull/153587#event-27859633666
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
July 11, 2026 19:27https://github.com/python/cpython/pull/153587#event-27859653677
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jul 11, 2026https://github.com/python/cpython/pull/153587#event-27859654394
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
force-pushedhttps://github.com/python/cpython/compare/bce3caa6af63ab0f80c2d6194a8d4035688f3423..2682fe5435099b36550a614a76e45ddcceee6e30
bce3caahttps://github.com/python/cpython/commit/bce3caa6af63ab0f80c2d6194a8d4035688f3423
2682fe5https://github.com/python/cpython/commit/2682fe5435099b36550a614a76e45ddcceee6e30
Compare https://github.com/python/cpython/compare/bce3caa6af63ab0f80c2d6194a8d4035688f3423..2682fe5435099b36550a614a76e45ddcceee6e30
July 11, 2026 19:38https://github.com/python/cpython/pull/153587#event-27859844600
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Jul 11, 2026https://github.com/python/cpython/pull/153587#event-27859846766
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Jul 11, 2026https://github.com/python/cpython/pull/153587#event-27860746608
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
July 11, 2026 20:37https://github.com/python/cpython/pull/153587#event-27860746693
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Jul 11, 2026https://github.com/python/cpython/pull/153587#event-27860747450
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
force-pushedhttps://github.com/python/cpython/compare/2682fe5435099b36550a614a76e45ddcceee6e30..1bf43aaa011ce26b4e5615a8016b74a2f83a57a6
2682fe5https://github.com/python/cpython/commit/2682fe5435099b36550a614a76e45ddcceee6e30
1bf43aahttps://github.com/python/cpython/commit/1bf43aaa011ce26b4e5615a8016b74a2f83a57a6
Compare https://github.com/python/cpython/compare/2682fe5435099b36550a614a76e45ddcceee6e30..1bf43aaa011ce26b4e5615a8016b74a2f83a57a6
July 11, 2026 21:15https://github.com/python/cpython/pull/153587#event-27861284955
https://github.com/maurycy
maurycyhttps://github.com/maurycy
Jul 11, 2026 https://github.com/python/cpython/pull/153587#pullrequestreview-4678793032
View reviewed changes https://github.com/python/cpython/pull/153587/files
Parser/tokenizer/source.chttps://github.com/python/cpython/pull/153587/files#diff-d091331acd32f48897fc1503341091ee6066cbe2208017651deef042b32273da
Please reload this pagehttps://github.com/python/cpython/pull/153587
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
July 18, 2026 12:55https://github.com/python/cpython/pull/153587#event-28158849909
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
July 18, 2026 12:55https://github.com/python/cpython/pull/153587#event-28158852232
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
force-pushedhttps://github.com/python/cpython/compare/b19b995ca460e8d8799b7688451a365330062c99..0dea29d641fbd74d98ae67cab23e5efc7011d5ad
b19b995https://github.com/python/cpython/commit/b19b995ca460e8d8799b7688451a365330062c99
0dea29dhttps://github.com/python/cpython/commit/0dea29d641fbd74d98ae67cab23e5efc7011d5ad
Compare https://github.com/python/cpython/compare/b19b995ca460e8d8799b7688451a365330062c99..0dea29d641fbd74d98ae67cab23e5efc7011d5ad
July 18, 2026 13:56https://github.com/python/cpython/pull/153587#event-28159777489
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
Aug 25, 2026https://github.com/python/cpython/pull/153587#issuecomment-5417765272
@copilothttps://gh.io/copilot-coding-agent-docs
Please reload this pagehttps://github.com/python/cpython/pull/153587
pablogsalhttps://github.com/pablogsal
August 26, 2026 00:53https://github.com/python/cpython/pull/153587#commits-pushed-697e7dd
https://github.com/pablogsal
pythongh-153569https://github.com/python/cpython/issues/153569
: Add tokenizer source and cursor primitiveshttps://github.com/python/cpython/pull/153587/commits/697e7dd9882062ea0778eea04a1cc5cd8588f02b
697e7ddhttps://github.com/python/cpython/pull/153587/commits/697e7dd9882062ea0778eea04a1cc5cd8588f02b
https://github.com/pablogsal
fixup!https://github.com/python/cpython/pull/153587/commits/100072cdf64821afd159058d88e7ddce60268518
pythongh-153569https://github.com/python/cpython/issues/153569
: Add tokenizer source and cursor primitiveshttps://github.com/python/cpython/pull/153587/commits/100072cdf64821afd159058d88e7ddce60268518
100072chttps://github.com/python/cpython/pull/153587/commits/100072cdf64821afd159058d88e7ddce60268518
https://github.com/pablogsal
fixup!https://github.com/python/cpython/pull/153587/commits/4b0454f54481c76371da6057600a95714f17fe1f
pythongh-153569https://github.com/python/cpython/issues/153569
: Add tokenizer source and cursor primitiveshttps://github.com/python/cpython/pull/153587/commits/4b0454f54481c76371da6057600a95714f17fe1f
4b0454fhttps://github.com/python/cpython/pull/153587/commits/4b0454f54481c76371da6057600a95714f17fe1f
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
force-pushedhttps://github.com/python/cpython/compare/0dea29d641fbd74d98ae67cab23e5efc7011d5ad..4b0454f54481c76371da6057600a95714f17fe1f
0dea29dhttps://github.com/python/cpython/commit/0dea29d641fbd74d98ae67cab23e5efc7011d5ad
4b0454fhttps://github.com/python/cpython/commit/4b0454f54481c76371da6057600a95714f17fe1f
Compare https://github.com/python/cpython/compare/0dea29d641fbd74d98ae67cab23e5efc7011d5ad..4b0454f54481c76371da6057600a95714f17fe1f
August 25, 2026 23:53https://github.com/python/cpython/pull/153587#event-30012872743
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
f54fd2ahttps://github.com/python/cpython/commit/f54fd2ab6e1f3e3e81a88be3d94ff9d5867b3b3a
Aug 26, 2026https://github.com/python/cpython/pull/153587#event-30039600214
Please reload this pagehttps://github.com/python/cpython/pull/153587
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
August 26, 2026 11:38https://github.com/python/cpython/pull/153587#event-30039602360
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Aug 26, 2026https://github.com/python/cpython/pull/153587#event-30039603115
clin1234https://github.com/clin1234
Aug 27, 2026 https://github.com/python/cpython/pull/153587#ref-commit-ca50f8e
https://github.com/pablogsal
https://github.com/clin1234
pythongh-153569https://github.com/python/cpython/issues/153569
: Add tokenizer source and cursor primitives (https://github.com/clin1234/cpython/commit/ca50f8e226066b83c1269326d5b3211b217319d3
python#1…https://github.com/python/cpython/pull/153587
ca50f8ehttps://github.com/clin1234/cpython/commit/ca50f8e226066b83c1269326d5b3211b217319d3
…53587https://github.com/python/cpython/pull/153587
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F153587
https://github.com/lysnikolaou
lysnikolaou https://github.com/lysnikolaou
https://github.com/ericsnowcurrently
ericsnowcurrently https://github.com/ericsnowcurrently
https://github.com/erlend-aasland
erlend-aasland https://github.com/erlend-aasland
https://github.com/AA-Turner
AA-Turner https://github.com/AA-Turner
https://github.com/emmatyping
emmatyping https://github.com/emmatyping
https://github.com/itamaro
itamaro https://github.com/itamaro
https://github.com/maurycy
maurycy https://github.com/maurycy
https://github.com/python/cpython/pull/153587/files/1bf43aaa011ce26b4e5615a8016b74a2f83a57a6
Please reload this pagehttps://github.com/python/cpython/pull/153587
skip news https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22skip%20news%22
Please reload this pagehttps://github.com/python/cpython/pull/153587
https://github.com/pablogsal
https://github.com/maurycy
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.