René's URL Explorer Experiment


Title: gh-151464: exclude '<>' token from tokenize output by skirpichev · Pull Request #154854 · python/cpython · GitHub

Open Graph Title: gh-151464: exclude '<>' token from tokenize output by skirpichev · Pull Request #154854 · python/cpython

X Title: gh-151464: exclude '<>' token from tokenize output by skirpichev · Pull Request #154854 · python/cpython

Description: Was: $ echo '1 <> 2' | python -m tokenize 1,0-1,1: NUMBER '1' 1,2-1,4: OP '<>' 1,5-1,6: NUMBER '2' 1,6-1,7: NEWLINE '\n' 2,0-2,0: ENDMARKER '' Now (regardless on __future__.barry_as_FLUFL import): $ echo '1 <> 2' | ./python -m tokenize 1,0-1,1: NUMBER '1' 1,2-1,3: OP '<' 1,3-1,4: OP '>' 1,5-1,6: NUMBER '2' 1,6-1,7: NEWLINE '\n' 2,0-2,0: ENDMARKER '' in accordance with the Grammar: https://docs.python.org/3.14/reference/lexical_analysis.html#operators-and-delimiters Also adds a custom error message for <> ("not equal" in Pascal and Python 2). Issue: gh-151464

Open Graph Description: Was: $ echo '1 <> 2' | python -m tokenize 1,0-1,1: NUMBER '1' 1,2-1,4: OP '<>' 1,5-1,6: NUMBER '...

X Description: Was: $ echo &#39;1 &lt;&gt; 2&#39; | python -m tokenize 1,0-1,1: NUMBER &#39;1&#39; 1,2-1,4: OP &#39;&lt;&gt;&#39; ...

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

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:6c1e3b61-6a2f-2061-8256-7667eadbfa0e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE420:39FDE1:8F59F1:B3F67A:6B02172F
html-safe-nonce02cc4bf299eaacffaa1808aa8891270556b0fd3275e31a59959b8ed665cb1d48
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDIwOjM5RkRFMTo4RjU5RjE6QjNGNjdBOjZCMDIxNzJGIiwidmlzaXRvcl9pZCI6IjY1NDE5NzQ3Mzk3MjcwMzAwNjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacbf042e17d930eb7714982e564460a2d62ab051842ca45e5392ad243b3c7a40d6
hovercard-subject-tagpull_request:4157665921
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/python/cpython/pull/154854/files
twitter:imagehttps://avatars.githubusercontent.com/u/2155800?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/2155800?s=400&v=4
og:image:altWas: $ echo '1 <> 2' | python -m tokenize 1,0-1,1: NUMBER '1' 1,2-1,4: OP '<>' 1,5-1,6: NUMBER '...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
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

Links:

Skip to contenthttps://github.com/python/cpython/pull/154854/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F154854%2Ffiles
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%2F154854%2Ffiles
Sign uphttps://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
Reloadhttps://github.com/python/cpython/pull/154854/files
Reloadhttps://github.com/python/cpython/pull/154854/files
Reloadhttps://github.com/python/cpython/pull/154854/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
pablogsalhttps://github.com/pablogsal
python:mainhttps://github.com/python/cpython/tree/main
skirpichev:save-python/151464https://github.com/skirpichev/cpython/tree/save-python/151464
Conversation 24 https://github.com/python/cpython/pull/154854
Commits 14 https://github.com/python/cpython/pull/154854/commits
Checks 69 https://github.com/python/cpython/pull/154854/checks
Files changed https://github.com/python/cpython/pull/154854/files
Please reload this pagehttps://github.com/python/cpython/pull/154854/files
gh-151464: exclude '<>' token from tokenize output https://github.com/python/cpython/pull/154854/files#top
Show all changes 14 commits https://github.com/python/cpython/pull/154854/files
73f2d90 gh-151464: exclude '<>' token from tokenize output skirpichev Jul 29, 2026 https://github.com/python/cpython/pull/154854/commits/73f2d909341f74ea528cce6efc37580635cf545d
c53a17f +1 skirpichev Jul 29, 2026 https://github.com/python/cpython/pull/154854/commits/c53a17ff508989d9f644d119b5d3fa6ea44b2e71
e525b8f Merge branch 'master' into save-python/151464 skirpichev Aug 10, 2026 https://github.com/python/cpython/pull/154854/commits/e525b8fec0b9c4d851298592d53b48237f09ed4f
f4dd644 address review: lowercase and move invalid rule skirpichev Aug 11, 2026 https://github.com/python/cpython/pull/154854/commits/f4dd6443625274c7c157688699cb5257f319b223
ba5843d address review: news skirpichev Aug 11, 2026 https://github.com/python/cpython/pull/154854/commits/ba5843d56a176371ceea68c138ced9a344cde02e
9ea138f address review: move test_guido_as_bdfl_ineq_tokens() skirpichev Aug 11, 2026 https://github.com/python/cpython/pull/154854/commits/9ea138fced4c4a95d908c059dbd9481f518514ca
3f9c57e address review: revert _PyTokenizer_From* changes skirpichev Aug 11, 2026 https://github.com/python/cpython/pull/154854/commits/3f9c57e2299d1090ebbe897e21fdc652afaf0659
a966092 Merge branch 'main' into save-python/151464 skirpichev Aug 21, 2026 https://github.com/python/cpython/pull/154854/commits/a9660929d85403ae4ea8904dd8af3ec51ec57a3f
d81b19c Merge branch 'master' into save-python/151464 skirpichev Sep 1, 2026 https://github.com/python/cpython/pull/154854/commits/d81b19cd6db077b433a7b3b379f74b06bfccd9cc
3ff8480 + revert unrelated change skirpichev Sep 1, 2026 https://github.com/python/cpython/pull/154854/commits/3ff84804c8b8bbfdb0c9cd9c906753c016d51531
d134772 Merge branch 'master' into save-python/151464 skirpichev Sep 15, 2026 https://github.com/python/cpython/pull/154854/commits/d1347723230f7064417d4d0777b517ae6ae61b78
e1fc4cc Merge branch 'master' into save-python/151464 skirpichev Sep 19, 2026 https://github.com/python/cpython/pull/154854/commits/e1fc4cc63e5864bc11ee994b38fa083bc792cbc6
8b5f1e4 address review: remove whatsnew entry skirpichev Sep 19, 2026 https://github.com/python/cpython/pull/154854/commits/8b5f1e42934cc98d06e71709bd8386479411bfd0
76b2ee6 Merge branch 'master' into save-python/151464 skirpichev Sep 25, 2026 https://github.com/python/cpython/pull/154854/commits/76b2ee63ceaa1b45f5a3b99fef64ad8808ff2ed6
Clear filters https://github.com/python/cpython/pull/154854/files
Please reload this pagehttps://github.com/python/cpython/pull/154854/files
Please reload this pagehttps://github.com/python/cpython/pull/154854/files
python.gram https://github.com/python/cpython/pull/154854/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
pycore_token.h https://github.com/python/cpython/pull/154854/files#diff-9350d3dff2681ea6bd266b894e523a16273967e4bb8eb47d9fa1f46b2d351791
test_syntax.py https://github.com/python/cpython/pull/154854/files#diff-985c9f5237c42a342864f5cbdb35dc56bc0017f44d5dfa561ecbef72e4a7ad4f
test_tokenize.py https://github.com/python/cpython/pull/154854/files#diff-b07c4f10c75a22e102f114227a0a9b7b763ddda7a330109994e69b29540ea9bb
2026-07-29-08-43-14.gh-issue-151464.o_mtmz.rst https://github.com/python/cpython/pull/154854/files#diff-16fbc70b0e239f230ff41f905863519eef91b7ceaebb4196ea4d969d7b155a69
action_helpers.c https://github.com/python/cpython/pull/154854/files#diff-36e14ad6a0e6109f6d47a0bdf480a2d5a86135044d2f96766b280062922009e7
lexer.c https://github.com/python/cpython/pull/154854/files#diff-4903ddce642a378ef03f37f72332cf1f5acb5bb0c6247669145fc3d8ea7cd43e
state.h https://github.com/python/cpython/pull/154854/files#diff-9efe28cd84a24747de9e363846c7d9255a3d3a7073896547f570bf91b4fd3667
parser.c https://github.com/python/cpython/pull/154854/files#diff-6d39440cedc67d1ce7a0586bfb6ecb8483803448a9c93f3fae3ad0e2260e29f7
pegen.c https://github.com/python/cpython/pull/154854/files#diff-ec9a9d08c5b1d518997db0f5b4795c528a41efc35507d6c2a384eee43f047cb7
token.c https://github.com/python/cpython/pull/154854/files#diff-62d6ae4a2b687e27352e989df2b323cee846a5f6d00a28e9705ba410ced1200c
generate_token.py https://github.com/python/cpython/pull/154854/files#diff-019eb03436a8f2dd2bbd1446f8e5b0c98ab2b96beff749ff2d4877e9ed2cc4e5
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L308
Grammar/python.gramhttps://github.com/python/cpython/pull/154854/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
View file https://github.com/skirpichev/cpython/blob/76b2ee63ceaa1b45f5a3b99fef64ad8808ff2ed6/Grammar/python.gram
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/154854/{{ revealButtonHref }}
https://github.com/python/cpython/pull/154854/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
https://github.com/python/cpython/pull/154854/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
https://github.com/python/cpython/pull/154854/files#diff-2973ca53337859793077e9bdc1a1623063379f0fdfcb788836fd82ebb66b763b
Include/internal/pycore_token.hhttps://github.com/python/cpython/pull/154854/files#diff-9350d3dff2681ea6bd266b894e523a16273967e4bb8eb47d9fa1f46b2d351791
View file https://github.com/skirpichev/cpython/blob/76b2ee63ceaa1b45f5a3b99fef64ad8808ff2ed6/Include/internal/pycore_token.h
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://github.com/python/cpython/pull/154854/files
Lib/test/test_syntax.pyhttps://github.com/python/cpython/pull/154854/files#diff-985c9f5237c42a342864f5cbdb35dc56bc0017f44d5dfa561ecbef72e4a7ad4f
View file https://github.com/skirpichev/cpython/blob/76b2ee63ceaa1b45f5a3b99fef64ad8808ff2ed6/Lib/test/test_syntax.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/154854/{{ revealButtonHref }}
https://github.com/python/cpython/pull/154854/files#diff-985c9f5237c42a342864f5cbdb35dc56bc0017f44d5dfa561ecbef72e4a7ad4f
https://github.com/python/cpython/pull/154854/files#diff-985c9f5237c42a342864f5cbdb35dc56bc0017f44d5dfa561ecbef72e4a7ad4f
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L311
Lib/test/test_tokenize.pyhttps://github.com/python/cpython/pull/154854/files#diff-b07c4f10c75a22e102f114227a0a9b7b763ddda7a330109994e69b29540ea9bb
View file https://github.com/skirpichev/cpython/blob/76b2ee63ceaa1b45f5a3b99fef64ad8808ff2ed6/Lib/test/test_tokenize.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/154854/{{ revealButtonHref }}
https://github.com/python/cpython/pull/154854/files#diff-b07c4f10c75a22e102f114227a0a9b7b763ddda7a330109994e69b29540ea9bb
https://github.com/python/cpython/pull/154854/files#diff-b07c4f10c75a22e102f114227a0a9b7b763ddda7a330109994e69b29540ea9bb
Misc/NEWS.d/next/Core_and_Builtins/2026-07-29-08-43-14.gh-issue-151464.o_mtmz.rsthttps://github.com/python/cpython/pull/154854/files#diff-16fbc70b0e239f230ff41f905863519eef91b7ceaebb4196ea4d969d7b155a69
View file https://github.com/skirpichev/cpython/blob/76b2ee63ceaa1b45f5a3b99fef64ad8808ff2ed6/Misc/NEWS.d/next/Core_and_Builtins/2026-07-29-08-43-14.gh-issue-151464.o_mtmz.rst
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/154854/{{ revealButtonHref }}
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L313
Parser/action_helpers.chttps://github.com/python/cpython/pull/154854/files#diff-36e14ad6a0e6109f6d47a0bdf480a2d5a86135044d2f96766b280062922009e7
View file https://github.com/skirpichev/cpython/blob/76b2ee63ceaa1b45f5a3b99fef64ad8808ff2ed6/Parser/action_helpers.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/154854/{{ revealButtonHref }}
https://github.com/python/cpython/pull/154854/files#diff-36e14ad6a0e6109f6d47a0bdf480a2d5a86135044d2f96766b280062922009e7
https://github.com/python/cpython/pull/154854/files#diff-36e14ad6a0e6109f6d47a0bdf480a2d5a86135044d2f96766b280062922009e7
https://github.com/python/cpython/pull/154854/files#diff-36e14ad6a0e6109f6d47a0bdf480a2d5a86135044d2f96766b280062922009e7
https://github.com/python/cpython/pull/154854/files#diff-36e14ad6a0e6109f6d47a0bdf480a2d5a86135044d2f96766b280062922009e7
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L313
Parser/lexer/lexer.chttps://github.com/python/cpython/pull/154854/files#diff-4903ddce642a378ef03f37f72332cf1f5acb5bb0c6247669145fc3d8ea7cd43e
View file https://github.com/skirpichev/cpython/blob/76b2ee63ceaa1b45f5a3b99fef64ad8808ff2ed6/Parser/lexer/lexer.c
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/154854/{{ revealButtonHref }}
https://github.com/python/cpython/pull/154854/files#diff-4903ddce642a378ef03f37f72332cf1f5acb5bb0c6247669145fc3d8ea7cd43e
https://github.com/python/cpython/pull/154854/files#diff-4903ddce642a378ef03f37f72332cf1f5acb5bb0c6247669145fc3d8ea7cd43e
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L313
Parser/lexer/state.hhttps://github.com/python/cpython/pull/154854/files#diff-9efe28cd84a24747de9e363846c7d9255a3d3a7073896547f570bf91b4fd3667
View file https://github.com/skirpichev/cpython/blob/76b2ee63ceaa1b45f5a3b99fef64ad8808ff2ed6/Parser/lexer/state.h
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python/cpython/pull/154854/{{ revealButtonHref }}
https://github.com/python/cpython/pull/154854/files#diff-9efe28cd84a24747de9e363846c7d9255a3d3a7073896547f570bf91b4fd3667
https://github.com/python/cpython/pull/154854/files#diff-9efe28cd84a24747de9e363846c7d9255a3d3a7073896547f570bf91b4fd3667
Please reload this pagehttps://github.com/python/cpython/pull/154854/files
Please reload this pagehttps://github.com/python/cpython/pull/154854/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.