René's URL Explorer Experiment


Title: tokenize.py emits spurious NEWLINE if file ends on a comment without a newline · Issue #88833 · python/cpython · GitHub

Open Graph Title: tokenize.py emits spurious NEWLINE if file ends on a comment without a newline · Issue #88833 · python/cpython

X Title: tokenize.py emits spurious NEWLINE if file ends on a comment without a newline · Issue #88833 · python/cpython

Description: BPO 44667 Nosy @terryjreedy, @ambv, @MatthieuDartiailh, @pablogsal, @miss-islington PRs #27499#27500#27501 Files no_newline_at_end_of_file_with_comment.py Note: these values reflect the state of the issue at the time it was migrated and ...

Open Graph Description: BPO 44667 Nosy @terryjreedy, @ambv, @MatthieuDartiailh, @pablogsal, @miss-islington PRs #27499#27500#27501 Files no_newline_at_end_of_file_with_comment.py Note: these values reflect the state of th...

X Description: BPO 44667 Nosy @terryjreedy, @ambv, @MatthieuDartiailh, @pablogsal, @miss-islington PRs #27499#27500#27501 Files no_newline_at_end_of_file_with_comment.py Note: these values reflect the state of th...

Opengraph URL: https://github.com/python/cpython/issues/88833

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"tokenize.py emits spurious NEWLINE if file ends on a comment without a newline","articleBody":"BPO | [44667](https://bugs.python.org/issue44667)\n--- | :---\nNosy | @terryjreedy, @ambv, @MatthieuDartiailh, @pablogsal, @miss-islington\nPRs | \u003cli>python/cpython#27499\u003c/li>\u003cli>python/cpython#27500\u003c/li>\u003cli>python/cpython#27501\u003c/li>\nFiles | \u003cli>[no_newline_at_end_of_file_with_comment.py](https://bugs.python.org/file50157/no_newline_at_end_of_file_with_comment.py \"Uploaded as text/plain at 2021-07-18.13:50:12 by @MatthieuDartiailh\")\u003c/li>\n\n\u003csup>*Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.*\u003c/sup>\n\n\u003cdetails>\u003csummary>Show more details\u003c/summary>\u003cp>\n\nGitHub fields:\n```python\nassignee = None\nclosed_at = \u003cDate 2021-07-31.01:17:51.161>\ncreated_at = \u003cDate 2021-07-18.13:50:13.546>\nlabels = ['type-bug', 'library', '3.9', '3.10', '3.11']\ntitle = 'tokenize.py emits spurious NEWLINE if file ends on a comment without a newline'\nupdated_at = \u003cDate 2022-01-19.20:53:27.027>\nuser = 'https://github.com/MatthieuDartiailh'\n```\n\nbugs.python.org fields:\n```python\nactivity = \u003cDate 2022-01-19.20:53:27.027>\nactor = 'terry.reedy'\nassignee = 'none'\nclosed = True\nclosed_date = \u003cDate 2021-07-31.01:17:51.161>\ncloser = 'pablogsal'\ncomponents = ['Library (Lib)']\ncreation = \u003cDate 2021-07-18.13:50:13.546>\ncreator = 'mdartiailh'\ndependencies = []\nfiles = ['50157']\nhgrepos = []\nissue_num = 44667\nkeywords = ['patch']\nmessage_count = 5.0\nmessages = ['397750', '398615', '398738', '398739', '410980']\nnosy_count = 5.0\nnosy_names = ['terry.reedy', 'lukasz.langa', 'mdartiailh', 'pablogsal', 'miss-islington']\npr_nums = ['27499', '27500', '27501']\npriority = 'normal'\nresolution = 'fixed'\nstage = 'resolved'\nstatus = 'closed'\nsuperseder = None\ntype = 'behavior'\nurl = 'https://bugs.python.org/issue44667'\nversions = ['Python 3.9', 'Python 3.10', 'Python 3.11']\n```\n\n\u003c/p>\u003c/details>\n","author":{"url":null,"@type":"Person","name":"MatthieuDartiailh"},"datePublished":"2021-07-18T13:50:14Z","url":"https://github.com/python/cpython/issues/88833"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7b01be46-a764-1297-6efc-bc7ae0c6c109
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9802:33DDEF:28C8572:3814AAB:6B00588C
html-safe-nonce2d3a117adbaf8094b53f0ff9ed628a27030279c4d7ec5404cd3a934509997433
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODAyOjMzRERFRjoyOEM4NTcyOjM4MTRBQUI6NkIwMDU4OEMiLCJ2aXNpdG9yX2lkIjoiODA1MjA3OTE2MzYyMTc5MTg4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac1a4a0d8f75364e1193f9e41087e1fee571fb0390e4199a83b0f2e5c5008dfaff
hovercard-subject-tagissue:1199061905
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/88833/issue_layout
twitter:imagehttps://opengraph.githubassets.com/eca38e15f40535a02de04ca00cb023ca7de7f4d7dfe5c9b9a7e98785394a1a6e/python/cpython/issues/88833
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/eca38e15f40535a02de04ca00cb023ca7de7f4d7dfe5c9b9a7e98785394a1a6e/python/cpython/issues/88833
og:image:altBPO 44667 Nosy @terryjreedy, @ambv, @MatthieuDartiailh, @pablogsal, @miss-islington PRs #27499#27500#27501 Files no_newline_at_end_of_file_with_comment.py Note: these values reflect the state of th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMatthieuDartiailh
hostnamegithub.com
expected-hostnamegithub.com
None29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73
turbo-cache-controlno-preview
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
releaseeacd927ba6112e3b01ba99c762bd699a4a4f5df7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/python/cpython/issues/88833#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fissues%2F88833
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%2Fissues%2F88833
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/issues/88833
Reloadhttps://github.com/python/cpython/issues/88833
Reloadhttps://github.com/python/cpython/issues/88833
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
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/88833
New issuehttps://github.com/login?return_to=https://github.com/python/cpython/issues/88833
tokenize.py emits spurious NEWLINE if file ends on a comment without a newlinehttps://github.com/python/cpython/issues/88833#top
3.10 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.10%20(EOL)%22
3.11only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.11%22
3.9 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.9%20(EOL)%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Jul 18, 2021https://github.com/python/cpython/issues/88833#issue-1199061905
44667https://bugs.python.org/issue44667
@terryjreedyhttps://github.com/terryjreedy
@ambvhttps://github.com/ambv
@MatthieuDartiailhhttps://github.com/MatthieuDartiailh
@pablogsalhttps://github.com/pablogsal
@miss-islingtonhttps://github.com/miss-islington
bpo-44667: Treat correctly lines ending with comments and no newlines in the Python tokenizer #27499https://github.com/python/cpython/pull/27499
[3.10] bpo-44667: Treat correctly lines ending with comments and no newlines in the Python tokenizer (GH-27499) #27500https://github.com/python/cpython/pull/27500
[3.9] bpo-44667: Treat correctly lines ending with comments and no newlines in the Python tokenizer (GH-27499) #27501https://github.com/python/cpython/pull/27501
no_newline_at_end_of_file_with_comment.pyhttps://bugs.python.org/file50157/no_newline_at_end_of_file_with_comment.py
on Jul 18, 2021https://github.com/python/cpython/issues/88833#issuecomment-1093922493
we-like-parsers/pegen#11 (comment)https://github.com/we-like-parsers/pegen/pull/11#issuecomment-881926767
https://github.com/python/cpython/blob/3.9/Lib/tokenize.py#L605https://github.com/python/cpython/blob/3.9/Lib/tokenize.py#L605
3.8 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.8%20(EOL)%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
on Jul 18, 2021https://github.com/python/cpython/issues/88833#event-6404124131
https://github.com/pablogsal
pablogsalhttps://github.com/pablogsal
on Jul 31, 2021https://github.com/python/cpython/issues/88833#issuecomment-1093922495
b6bde9fhttps://github.com/python/cpython/commit/b6bde9fc42aecad5be0457198d17cfe7b481ad79
bpo-44667https://bugs.python.org/issue?@action=redirect&bpo=44667
GH-27499https://github.com/python/cpython/pull/27499
b6bde9fhttps://github.com/python/cpython/commit/b6bde9fc42aecad5be0457198d17cfe7b481ad79
pablogsalhttps://github.com/pablogsal
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 31, 2021https://github.com/python/cpython/issues/88833#event-6404124136
pablogsalhttps://github.com/pablogsal
completedhttps://github.com/python/cpython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 31, 2021https://github.com/python/cpython/issues/88833#event-6404124149
https://github.com/ambv
ambvhttps://github.com/ambv
on Aug 2, 2021https://github.com/python/cpython/issues/88833#issuecomment-1093922497
33a4010https://github.com/python/cpython/commit/33a4010198aad31346e46dafdda17e02f8349017
bpo-44667https://bugs.python.org/issue?@action=redirect&bpo=44667
GH-27499https://github.com/python/cpython/pull/27499
GH-27500https://github.com/python/cpython/pull/27500
33a4010https://github.com/python/cpython/commit/33a4010198aad31346e46dafdda17e02f8349017
https://github.com/ambv
ambvhttps://github.com/ambv
on Aug 2, 2021https://github.com/python/cpython/issues/88833#issuecomment-1093922500
2d11797https://github.com/python/cpython/commit/2d11797c81be3ae776e418a5ba507098356d357c
bpo-44667https://bugs.python.org/issue?@action=redirect&bpo=44667
GH-27499https://github.com/python/cpython/pull/27499
GH-27501https://github.com/python/cpython/pull/27501
2d11797https://github.com/python/cpython/commit/2d11797c81be3ae776e418a5ba507098356d357c
https://github.com/terryjreedy
terryjreedyhttps://github.com/terryjreedy
on Jan 19, 2022https://github.com/python/cpython/issues/88833#issuecomment-1093922503
bpo-35107https://bugs.python.org/issue?@action=redirect&bpo=35107
terryjreedyhttps://github.com/terryjreedy
3.9 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.9%20(EOL)%22
3.10 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.10%20(EOL)%22
3.11only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.11%22
3.8 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.8%20(EOL)%22
on Jan 19, 2022https://github.com/python/cpython/issues/88833#event-6404124138
ezio-melottihttps://github.com/ezio-melotti
https://github.com/python/cpython/issues/undefined
on Apr 10, 2022https://github.com/python/cpython/issues/88833#event-6404124156
Sachaa-Thanasiushttps://github.com/Sachaa-Thanasius
on Apr 14, 2024https://github.com/python/cpython/issues/88833#event-12461389090
Fix a 3.8 bug and adjust style.https://github.com/Sachaa-Thanasius/jishaku/commit/d28520100b2bcab834dde7213e0d3c353c02b5f4
d285201https://github.com/Sachaa-Thanasius/jishaku/commit/d28520100b2bcab834dde7213e0d3c353c02b5f4
Sign up for freehttps://github.com/signup?return_to=https://github.com/python/cpython/issues/88833
Sign in to commenthttps://github.com/login?return_to=https://github.com/python/cpython/issues/88833
3.10 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.10%20(EOL)%22
3.11only security fixeshttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.11%22
3.9 (EOL)end of lifehttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%223.9%20(EOL)%22
stdlibStandard Library Python modules in the Lib/ directoryhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22stdlib%22
type-bugAn unexpected behavior, bug, or errorhttps://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22type-bug%22
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.