| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4efdc369-1962-dcdd-628c-0fab4e7bde5e |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E33A:172D3F:17053F8:1EE5E4A:6A543E95 |
| html-safe-nonce | 584515c0931b9d9a8bb491eb979f492877999fe449514bd098147fd798771afb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzNBOjE3MkQzRjoxNzA1M0Y4OjFFRTVFNEE6NkE1NDNFOTUiLCJ2aXNpdG9yX2lkIjoiMTM5NjA4NDg3MjMwOTkxNTI4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 40f74c17b35fe6546f9eb114ebce5f9724e05bb5902d13468b78dec04e57b16f |
| hovercard-subject-tag | pull_request:120860853 |
| 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/1608/files |
| twitter:image | https://avatars.githubusercontent.com/u/301791?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/301791?s=400&v=4 |
| og:image:alt | Saw this open bug report, and since I was looking at tokenize.py anyway. I figured I address it.
This may catch people off guard though because they may be relying on tok_name containing ENCODING, ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/1608/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F1608%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| 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 |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | 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 |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F1608%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/1608/files |
| Reload | https://github.com/python/cpython/pull/1608/files |
| Reload | https://github.com/python/cpython/pull/1608/files |
| Please reload this page | https://github.com/python/cpython/pull/1608/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/1608/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
35k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
73.8k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.3k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
0
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| 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/pulse |
| 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 |
| vstinner | https://github.com/vstinner |
| python:master | https://github.com/python/cpython/tree/master |
| albertjan:fix-issue-25324 | https://github.com/albertjan/cpython-1/tree/fix-issue-25324 |
|
Conversation
28
| https://github.com/python/cpython/pull/1608 |
|
Commits
11
| https://github.com/python/cpython/pull/1608/commits |
|
Checks
0
| https://github.com/python/cpython/pull/1608/checks |
|
Files changed
| https://github.com/python/cpython/pull/1608/files |
| Please reload this page | https://github.com/python/cpython/pull/1608/files |
|
bpo-25324: copy tok_name before changing it
| https://github.com/python/cpython/pull/1608/files#top |
|
Show all changes
11 commits
| https://github.com/python/cpython/pull/1608/files |
|
44c1b9e
add test to check if were modifying token
albertjan May 16, 2017
| https://github.com/python/cpython/pull/1608/commits/44c1b9e61548a885201e6efaf902ead94b38cfa1 |
|
85ab9d6
copy list so import tokenize doesnt have side effects on token
albertjan May 16, 2017
| https://github.com/python/cpython/pull/1608/commits/85ab9d61a86cb817050919c35455c45460a94972 |
|
ac27a69
shorten line
albertjan May 16, 2017
| https://github.com/python/cpython/pull/1608/commits/ac27a69d448dd864c6ac1a5b9ec975a5ef9fff81 |
|
607dde4
add tokenize tokens to token.h to get them to show up in token
albertjan May 24, 2017
| https://github.com/python/cpython/pull/1608/commits/607dde4932694b99c90a56c2df0ca09c5a2cbb5c |
|
2c89203
move ERRORTOKEN back to its previous location, and fix nitpick
albertjan May 30, 2017
| https://github.com/python/cpython/pull/1608/commits/2c89203953c468f35e43ab03f1f8b2ba1e7a3e25 |
|
4593e1d
copy comments from token.h automatically
albertjan May 30, 2017
| https://github.com/python/cpython/pull/1608/commits/4593e1d370e8886dea8db2cf013985bac1d483dc |
|
1c26215
fix whitespace and make more pythonic
albertjan May 30, 2017
| https://github.com/python/cpython/pull/1608/commits/1c262152d77227342eb3e1144e94011bdadff5b2 |
|
7759818
change to fix comments from @haypo
albertjan May 30, 2017
| https://github.com/python/cpython/pull/1608/commits/77598189b60b234afb5d6b5d86085a2bfb84d5a5 |
|
6da5c14
update token.rst and Misc/NEWS
albertjan May 31, 2017
| https://github.com/python/cpython/pull/1608/commits/6da5c143efdb65e159e899f956e78671f81da064 |
|
e7113fa
change wording
albertjan May 31, 2017
| https://github.com/python/cpython/pull/1608/commits/e7113fa2ec2368984e408c25cb6a2f2be441aa10 |
|
e483bf6
some more wording changes
albertjan May 31, 2017
| https://github.com/python/cpython/pull/1608/commits/e483bf6361b6f8c9af6cac770ab020e34d0f6f5f |
|
Clear filters
| https://github.com/python/cpython/pull/1608/files |
| Please reload this page | https://github.com/python/cpython/pull/1608/files |
| Please reload this page | https://github.com/python/cpython/pull/1608/files |
|
token.rst
| https://github.com/python/cpython/pull/1608/files#diff-025461bf9a1aa1b659556806a2e5ebd3e390d2db2fd27f921e6d180d7167b5f5 |
|
token.h
| https://github.com/python/cpython/pull/1608/files#diff-cec6ca68824b602026d6ca5d4fe48a3beabd534fd6bef3c016a135683b375517 |
|
test_tokenize.py
| https://github.com/python/cpython/pull/1608/files#diff-b07c4f10c75a22e102f114227a0a9b7b763ddda7a330109994e69b29540ea9bb |
|
token.py
| https://github.com/python/cpython/pull/1608/files#diff-4a711e782c0052faff4c5ffa0df266200f81ddb87687c9b7d92af70233d43dd6 |
|
tokenize.py
| https://github.com/python/cpython/pull/1608/files#diff-35c916ae2b7e488053d1c28da2a853790f2c0474e909c03950e49aa4203ea976 |
|
NEWS
| https://github.com/python/cpython/pull/1608/files#diff-f920da77b137d2e8eedf287c987745a3ff99c83d20a6332f656b35d12c479d10 |
|
tokenizer.c
| https://github.com/python/cpython/pull/1608/files#diff-51e9668dbe1e270b3575209bcfcce9d3701ee0a145bdf7cef866209d9819f2ed |
| Doc/library/token.rst | https://github.com/python/cpython/pull/1608/files#diff-025461bf9a1aa1b659556806a2e5ebd3e390d2db2fd27f921e6d180d7167b5f5 |
|
View file
| https://github.com/albertjan/cpython-1/blob/e483bf6361b6f8c9af6cac770ab020e34d0f6f5f/Doc/library/token.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/1608/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/1608/files#diff-025461bf9a1aa1b659556806a2e5ebd3e390d2db2fd27f921e6d180d7167b5f5 |
| Include/token.h | https://github.com/python/cpython/pull/1608/files#diff-cec6ca68824b602026d6ca5d4fe48a3beabd534fd6bef3c016a135683b375517 |
|
View file
| https://github.com/albertjan/cpython-1/blob/e483bf6361b6f8c9af6cac770ab020e34d0f6f5f/Include/token.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/1608/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/1608/files#diff-cec6ca68824b602026d6ca5d4fe48a3beabd534fd6bef3c016a135683b375517 |
|
| https://github.com/python/cpython/pull/1608/files#diff-cec6ca68824b602026d6ca5d4fe48a3beabd534fd6bef3c016a135683b375517 |
| Lib/test/test_tokenize.py | https://github.com/python/cpython/pull/1608/files#diff-b07c4f10c75a22e102f114227a0a9b7b763ddda7a330109994e69b29540ea9bb |
|
View file
| https://github.com/albertjan/cpython-1/blob/e483bf6361b6f8c9af6cac770ab020e34d0f6f5f/Lib/test/test_tokenize.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/1608/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/1608/files#diff-b07c4f10c75a22e102f114227a0a9b7b763ddda7a330109994e69b29540ea9bb |
|
| https://github.com/python/cpython/pull/1608/files#diff-b07c4f10c75a22e102f114227a0a9b7b763ddda7a330109994e69b29540ea9bb |
| Lib/token.py | https://github.com/python/cpython/pull/1608/files#diff-4a711e782c0052faff4c5ffa0df266200f81ddb87687c9b7d92af70233d43dd6 |
|
View file
| https://github.com/albertjan/cpython-1/blob/e483bf6361b6f8c9af6cac770ab020e34d0f6f5f/Lib/token.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/1608/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/1608/files#diff-4a711e782c0052faff4c5ffa0df266200f81ddb87687c9b7d92af70233d43dd6 |
|
| https://github.com/python/cpython/pull/1608/files#diff-4a711e782c0052faff4c5ffa0df266200f81ddb87687c9b7d92af70233d43dd6 |
|
| https://github.com/python/cpython/pull/1608/files#diff-4a711e782c0052faff4c5ffa0df266200f81ddb87687c9b7d92af70233d43dd6 |
|
| https://github.com/python/cpython/pull/1608/files#diff-4a711e782c0052faff4c5ffa0df266200f81ddb87687c9b7d92af70233d43dd6 |
|
| https://github.com/python/cpython/pull/1608/files#diff-4a711e782c0052faff4c5ffa0df266200f81ddb87687c9b7d92af70233d43dd6 |
| Lib/tokenize.py | https://github.com/python/cpython/pull/1608/files#diff-35c916ae2b7e488053d1c28da2a853790f2c0474e909c03950e49aa4203ea976 |
|
View file
| https://github.com/albertjan/cpython-1/blob/e483bf6361b6f8c9af6cac770ab020e34d0f6f5f/Lib/tokenize.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/1608/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/1608/files#diff-35c916ae2b7e488053d1c28da2a853790f2c0474e909c03950e49aa4203ea976 |
|
| https://github.com/python/cpython/pull/1608/files#diff-35c916ae2b7e488053d1c28da2a853790f2c0474e909c03950e49aa4203ea976 |
| Misc/NEWS | https://github.com/python/cpython/pull/1608/files#diff-f920da77b137d2e8eedf287c987745a3ff99c83d20a6332f656b35d12c479d10 |
|
View file
| https://github.com/albertjan/cpython-1/blob/e483bf6361b6f8c9af6cac770ab020e34d0f6f5f/Misc/NEWS |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/1608/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/1608/files#diff-f920da77b137d2e8eedf287c987745a3ff99c83d20a6332f656b35d12c479d10 |
|
| https://github.com/python/cpython/pull/1608/files#diff-f920da77b137d2e8eedf287c987745a3ff99c83d20a6332f656b35d12c479d10 |
| Parser/tokenizer.c | https://github.com/python/cpython/pull/1608/files#diff-51e9668dbe1e270b3575209bcfcce9d3701ee0a145bdf7cef866209d9819f2ed |
|
View file
| https://github.com/albertjan/cpython-1/blob/e483bf6361b6f8c9af6cac770ab020e34d0f6f5f/Parser/tokenizer.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/1608/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/1608/files#diff-51e9668dbe1e270b3575209bcfcce9d3701ee0a145bdf7cef866209d9819f2ed |
|
| https://github.com/python/cpython/pull/1608/files#diff-51e9668dbe1e270b3575209bcfcce9d3701ee0a145bdf7cef866209d9819f2ed |
|
| 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 |