René's URL Explorer Experiment


Title: Base implementation of `_tokenize` module by ShaharNaveh · Pull Request #6240 · RustPython/RustPython · GitHub

Open Graph Title: Base implementation of `_tokenize` module by ShaharNaveh · Pull Request #6240 · RustPython/RustPython

X Title: Base implementation of `_tokenize` module by ShaharNaveh · Pull Request #6240 · RustPython/RustPython

Description: Summary by CodeRabbit New Features New Python tokenizer module: Tokenizer iterator that yields token tuples (type, text, start, end, line), accepts a readline callable, optional encoding, and an extra-token mode; emits EOF tokens with position metadata for streaming/tokenization. Chores Internal dependency declarations updated to support the new tokenizer module.

Open Graph Description: Summary by CodeRabbit New Features New Python tokenizer module: Tokenizer iterator that yields token tuples (type, text, start, end, line), accepts a readline callable, optional encoding, and an...

X Description: Summary by CodeRabbit New Features New Python tokenizer module: Tokenizer iterator that yields token tuples (type, text, start, end, line), accepts a readline callable, optional encoding, and an...

Opengraph URL: https://github.com/RustPython/RustPython/pull/6240

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e41fb522-9f25-a272-5303-c98484654848
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8C7C:2AB445:308AA4:42B5E5:6970A68B
html-safe-nonce15d9d3ced51d36005f987ba51375dc804b0b44c162aebe6692a09bafcc487f64
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzdDOjJBQjQ0NTozMDhBQTQ6NDJCNUU1OjY5NzBBNjhCIiwidmlzaXRvcl9pZCI6IjQ4MjU4OTc5MDkyMjEzNjk0ODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacb241d0d73ea4d37525d70b1f3fcd6c7d8f56878358a9f04b9e2cee746ff9b719
hovercard-subject-tagpull_request:2991311673
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/RustPython/RustPython/pull/6240/files
twitter:imagehttps://avatars.githubusercontent.com/u/50263213?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/50263213?s=400&v=4
og:image:altSummary by CodeRabbit New Features New Python tokenizer module: Tokenizer iterator that yields token tuples (type, text, start, end, line), accepts a readline callable, optional encoding, and an...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb06a4c45c45fd0bb038b3759265ea6e38211f45d18130bc65261990be6b5972a
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git
octolytics-dimension-user_id39710557
octolytics-dimension-user_loginRustPython
octolytics-dimension-repository_id135201145
octolytics-dimension-repository_nwoRustPython/RustPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id135201145
octolytics-dimension-repository_network_root_nwoRustPython/RustPython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release0e1c4964831785bd64cb22d82e7cf2391ae01f45
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F6240%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FRustPython%2FRustPython%2Fpull%2F6240%2Ffiles
Sign up https://patch-diff.githubusercontent.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=RustPython%2FRustPython
Reloadhttps://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files
Reloadhttps://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files
Reloadhttps://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files
RustPython https://patch-diff.githubusercontent.com/RustPython
RustPythonhttps://patch-diff.githubusercontent.com/RustPython/RustPython
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FRustPython%2FRustPython
Fork 1.4k https://patch-diff.githubusercontent.com/login?return_to=%2FRustPython%2FRustPython
Star 21.7k https://patch-diff.githubusercontent.com/login?return_to=%2FRustPython%2FRustPython
Code https://patch-diff.githubusercontent.com/RustPython/RustPython
Issues 276 https://patch-diff.githubusercontent.com/RustPython/RustPython/issues
Pull requests 92 https://patch-diff.githubusercontent.com/RustPython/RustPython/pulls
Discussions https://patch-diff.githubusercontent.com/RustPython/RustPython/discussions
Actions https://patch-diff.githubusercontent.com/RustPython/RustPython/actions
Projects 0 https://patch-diff.githubusercontent.com/RustPython/RustPython/projects
Wiki https://patch-diff.githubusercontent.com/RustPython/RustPython/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/RustPython/RustPython/security
Please reload this pagehttps://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files
Insights https://patch-diff.githubusercontent.com/RustPython/RustPython/pulse
Code https://patch-diff.githubusercontent.com/RustPython/RustPython
Issues https://patch-diff.githubusercontent.com/RustPython/RustPython/issues
Pull requests https://patch-diff.githubusercontent.com/RustPython/RustPython/pulls
Discussions https://patch-diff.githubusercontent.com/RustPython/RustPython/discussions
Actions https://patch-diff.githubusercontent.com/RustPython/RustPython/actions
Projects https://patch-diff.githubusercontent.com/RustPython/RustPython/projects
Wiki https://patch-diff.githubusercontent.com/RustPython/RustPython/wiki
Security https://patch-diff.githubusercontent.com/RustPython/RustPython/security
Insights https://patch-diff.githubusercontent.com/RustPython/RustPython/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2FRustPython%2FRustPython%2Fissues%2Fnew%2Fchoose
ShaharNavehhttps://patch-diff.githubusercontent.com/ShaharNaveh
RustPython:mainhttps://patch-diff.githubusercontent.com/RustPython/RustPython/tree/main
ShaharNaveh:update-tokenhttps://patch-diff.githubusercontent.com/ShaharNaveh/RustPython/tree/update-token
Conversation 10 https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240
Commits 8 https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/commits
Checks 11 https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/checks
Files changed https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files
Please reload this pagehttps://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files
Base implementation of _tokenize module https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#top
Show all changes 8 commits https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files
c9d2ad5 Update `token{ize,}.py` from 3.13.9 ShaharNaveh Oct 22, 2025 https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/commits/c9d2ad5b5f09e14eee0400d9d300e6d9ff1cd532
d8a76a3 Lazy readline ShaharNaveh Oct 27, 2025 https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/commits/d8a76a34dc1026985b9920168c2af3b711f450e6
327052e Support encoding ShaharNaveh Oct 31, 2025 https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/commits/327052e71c64a1781f2b169d274461c61eb83268
7bc0197 Mark/unmark tests ShaharNaveh Nov 8, 2025 https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/commits/7bc01972a23079a0239ec69eb03def6c8ef62870
04371d3 clippy ShaharNaveh Nov 8, 2025 https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/commits/04371d32c733261d5c72d04f31377a4d19a98693
30f54f6 Handle readline stopiteration ShaharNaveh Nov 8, 2025 https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/commits/30f54f6910fd7f21b0ff3877f3ac81ef7c0c8f4d
57d1696 Unmark passing test ShaharNaveh Nov 8, 2025 https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/commits/57d1696a5523eabb9813c2f07905222b51c135c3
37f6c72 fix path on `test_tarfile.py` ShaharNaveh Nov 8, 2025 https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/commits/37f6c725eba74612ce17ea3af333d09958a4c34a
Clear filters https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files
Please reload this pagehttps://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files
Please reload this pagehttps://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files
Cargo.lock https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#diff-13ee4b2252c9e516a0547f2891aa2105c3ca71c6d7a1e682c69be97998dfc87e
Cargo.toml https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#diff-2e9d962a08321605940b5a657135052fbcef87b5e360662bb527c96d9a615542
test_tarfile.py https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#diff-5a960e3329582bbb78357c630a282130226d734c1042e491ba2198729a2b6eac
test_tokenize.py https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#diff-b07c4f10c75a22e102f114227a0a9b7b763ddda7a330109994e69b29540ea9bb
testhelpers.py https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#diff-29c9bac78ef671714bc978cfd033586a1f96df08736194b42b66e5a8fcc08bbe
__init__.py https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#diff-981c5b263aa18b6d701b9e47fe8a38cb251209f58907f0f2e6993aa6aa3a580f
bad_coding.py https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#diff-7e97aaf02ef4621bd1c19636ec4d1b3cbb252914e34263447e8676d1d0d56990
bad_coding2.py https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#diff-18a4c0e44b0c96cc61aae2f6202e6e10c3ba579225c07fc05c483cde0982c99a
badsyntax_3131.py https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#diff-be58af0f9d475f4a67cb66a52fe1198cb8c7e5992f628db44f611442e7a1588f
badsyntax_pep3120.py https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#diff-1cc8000bb69e071c274f07ca2c847b652032beb78cd29a79a465dd2213533a16
coding20731.py https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#diff-e483d3d2074d5fa489b1d692929223f69a32fc19a1e78075d650e92f58cd72c8
tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#diff-c3b83d63d3c6c5589fee619d5c9a6eb9488e47a66dc70113034ea811e2a706b9
tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#diff-331922df702c5303c4f7b0f31b8cc5bcd429139675bbc035310c5b791f254874
tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#diff-5018b8d668a664856dba2a25f9f0c06488113f6ae01cac1c75839769ccc83ce5
tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#diff-0ebdf08ac8713d0340b1c65e3e9d740268b1a2ad5f535ccf09321fecf1b14ae7
tokenize_tests.txt https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#diff-0ca331d9a4450d063788f79030824e1e09aa37a8d9c204dd6f967500cbbfa961
token.py https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#diff-4a711e782c0052faff4c5ffa0df266200f81ddb87687c9b7d92af70233d43dd6
tokenize.py https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#diff-35c916ae2b7e488053d1c28da2a853790f2c0474e909c03950e49aa4203ea976
Cargo.toml https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#diff-18568e5aabf9b8330744cb4c24bdfe9ed6a0effe6efe54578b86a4e54674075d
lib.rs https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#diff-4ee6ee1bcb5289ee2531363b0c5f60f7d546f6a90c7543c0e7d645901cb38857
tokenize.rs https://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#diff-54cc741827dfdaab95d24da40de7b00e7952c50e55724cfa779bb9eb0550fc19
Cargo.lockhttps://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files#diff-13ee4b2252c9e516a0547f2891aa2105c3ca71c6d7a1e682c69be97998dfc87e
View file https://patch-diff.githubusercontent.com/RustPython/RustPython/blob/37f6c725eba74612ce17ea3af333d09958a4c34a/Cargo.lock
Open in desktop https://desktop.github.com
how customized files appear on GitHubhttps://docs.github.com/github/administering-a-repository/customizing-how-changed-files-appear-on-github
Please reload this pagehttps://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files
Please reload this pagehttps://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files
Please reload this pagehttps://patch-diff.githubusercontent.com/RustPython/RustPython/pull/6240/files
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.