| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b6cfa20a-3faa-4a8e-5435-e6b2afb54f9c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E294:5592:1BB58A0:24F2DAF:6A5D45D5 |
| html-safe-nonce | 06a8dd743e62d2b17c6bf0fae70961127753886229dca1663ff35cfb960ab126 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjk0OjU1OTI6MUJCNThBMDoyNEYyREFGOjZBNUQ0NUQ1IiwidmlzaXRvcl9pZCI6Ijc4NDg4OTAzNzY4NzA3NzQyMjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | eb8f371cfb90730249d1772d0b637953802f1a2cddb69e56bd7388a36d455ced |
| hovercard-subject-tag | pull_request:1436415030 |
| 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/106816/files |
| twitter:image | https://avatars.githubusercontent.com/u/20198864?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/20198864?s=400&v=4 |
| og:image:alt | Following the suggestion from this comment in the original issue this PR adds a new function _Py_normpathAndSize which behaves like _Py_normpath but also takes a pointer which it will use to store ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/106816/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F106816%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%2F106816%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/106816/files |
| Reload | https://github.com/python/cpython/pull/106816/files |
| Reload | https://github.com/python/cpython/pull/106816/files |
| Please reload this page | https://github.com/python/cpython/pull/106816/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/106816/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.4k
| 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 |
| zooba | https://github.com/zooba |
| python:main | https://github.com/python/cpython/tree/main |
| finnagin:106242 | https://github.com/finnagin/cpython/tree/106242 |
|
Conversation
21
| https://github.com/python/cpython/pull/106816 |
|
Commits
27
| https://github.com/python/cpython/pull/106816/commits |
|
Checks
0
| https://github.com/python/cpython/pull/106816/checks |
|
Files changed
| https://github.com/python/cpython/pull/106816/files |
| Please reload this page | https://github.com/python/cpython/pull/106816/files |
|
gh-106242: Fix path truncation in normpath
| https://github.com/python/cpython/pull/106816/files#top |
|
Show all changes
27 commits
| https://github.com/python/cpython/pull/106816/files |
|
d1fe8fa
added _Py_normpathAndSize
finnagin Jul 3, 2023
| https://github.com/python/cpython/pull/106816/commits/d1fe8fade29a3bf60a2b57af83f18e94f1fd5b48 |
|
726da04
Merge remote-tracking branch 'upstream/main' into 106242
finnagin Jul 3, 2023
| https://github.com/python/cpython/pull/106816/commits/726da048d4c8bbdcf332fe43d6c41a232337b66f |
|
8cab42c
PyAPI_FUNC -> extern
finnagin Jul 5, 2023
| https://github.com/python/cpython/pull/106816/commits/8cab42c5cca34c5c272e9f0dd7704a6b9a580eac |
|
82a9d36
remove prinfs
finnagin Jul 5, 2023
| https://github.com/python/cpython/pull/106816/commits/82a9d360a248a26dff340113db5a3b40407ed7ed |
|
6c18bf8
fix length calculation
finnagin Jul 5, 2023
| https://github.com/python/cpython/pull/106816/commits/6c18bf8d10b8688c05ab2c0b98e4a5b8e116f91a |
|
c90249d
length -> norm_size, fix begining null char case
finnagin Jul 6, 2023
| https://github.com/python/cpython/pull/106816/commits/c90249de10d3ccbc6ff6f788130a4187f20ff546 |
|
8e1f1ea
fix norm_size calculation
finnagin Jul 6, 2023
| https://github.com/python/cpython/pull/106816/commits/8e1f1ea5456fd2c1796346d9dd45c1dc68000fb2 |
|
3003891
add test cases
finnagin Jul 6, 2023
| https://github.com/python/cpython/pull/106816/commits/30038913b66a89a42cd2348a9bfd080b2c36913d |
|
2fcae77
Merge remote-tracking branch 'upstream/main' into 106242
finnagin Jul 6, 2023
| https://github.com/python/cpython/pull/106816/commits/2fcae775becb29040fe8ee0f7e8712da6d75df9b |
|
30fa3a4
move tests to test_genericpath.py
finnagin Jul 6, 2023
| https://github.com/python/cpython/pull/106816/commits/30fa3a40c3325f2050434169465bc96793f91e17 |
|
f0afe44
handle edge cases
finnagin Jul 6, 2023
| https://github.com/python/cpython/pull/106816/commits/f0afe44906c9a2dce62e580480fa349a0c6ed71a |
|
6412901
decrement p2 when == minp2 & update minp2 handling with leading ./
finnagin Jul 13, 2023
| https://github.com/python/cpython/pull/106816/commits/641290104d332aa29e18866233bf612a3dffdce1 |
|
78192de
change test case to no longer include null character
finnagin Jul 13, 2023
| https://github.com/python/cpython/pull/106816/commits/78192de7abce32052a44068b24bda53dadf91ec5 |
|
199abac
Merge remote-tracking branch 'upstream/main' into 106242
finnagin Jul 13, 2023
| https://github.com/python/cpython/pull/106816/commits/199abac9b1bd6737df6b7d202ffdbf50728a9c50 |
|
cbe57c4
Merge branch 'python:main' into 106242
finnagin Jul 13, 2023
| https://github.com/python/cpython/pull/106816/commits/cbe57c47f71063ffc3926d0a91fd6191c78cd224 |
|
4b9de2c
Add norm_size variable description, add normpath description
finnagin Jul 13, 2023
| https://github.com/python/cpython/pull/106816/commits/4b9de2cacb35d55aef4cbbdb6a34e364cf583aaf |
|
f1731f1
update normpathAndSize description
finnagin Jul 13, 2023
| https://github.com/python/cpython/pull/106816/commits/f1731f1f093a951d587cfbacba71c2b405141480 |
|
d7f7045
norm_size->normsize
finnagin Jul 16, 2023
| https://github.com/python/cpython/pull/106816/commits/d7f70457dc51973ffb47dd653c0c221085f00ca0 |
|
184fde9
Merge remote-tracking branch 'upstream/main' into 106242
finnagin Jul 16, 2023
| https://github.com/python/cpython/pull/106816/commits/184fde9a960af02ab702a9f8be23bd91f4c9e266 |
|
9e0d52a
remove trailing whitespace
finnagin Jul 16, 2023
| https://github.com/python/cpython/pull/106816/commits/9e0d52a25182691497a0522b5402574ad811bd5b |
|
3815967
Merge remote-tracking branch 'upstream/main' into 106242
finnagin Jul 16, 2023
| https://github.com/python/cpython/pull/106816/commits/38159671a256908eafb6a7c06e3f4dabbb4cbe5a |
|
d9d78cc
Merge branch 'python:main' into 106242
finnagin Jul 16, 2023
| https://github.com/python/cpython/pull/106816/commits/d9d78cc2071ee4d161e81fe217ff5600b35fcc13 |
|
3ef9e3b
_Py_normpathAndSize -> _Py_normpath_and_size
finnagin Jul 17, 2023
| https://github.com/python/cpython/pull/106816/commits/3ef9e3b1e12f316fd5b04f536486db882d19149b |
|
c885d13
revert test_addpackage_import_bad_pth_file change
finnagin Jul 17, 2023
| https://github.com/python/cpython/pull/106816/commits/c885d13975ec9fefdb2ae34d5ea63184cd28ea87 |
|
d896d45
merge upstream/main, fix merge conflicts
finnagin Aug 14, 2023
| https://github.com/python/cpython/pull/106816/commits/d896d45a540a420e5082a073030917b510f83f5b |
|
0959e2b
📜🤖 Added by blurb_it.
blurb-it[bot] Aug 14, 2023
| https://github.com/python/cpython/pull/106816/commits/0959e2b56e2814afe7e630275e1ab2fdf56809d4 |
|
aecae84
Update Misc/NEWS.d/next/Library/2023-08-14-23-11-11.gh-issue-106242.7…
finnagin Aug 14, 2023
| https://github.com/python/cpython/pull/106816/commits/aecae846fff0a15585178d61cdc44cae1b91bb76 |
|
Clear filters
| https://github.com/python/cpython/pull/106816/files |
| Please reload this page | https://github.com/python/cpython/pull/106816/files |
| Please reload this page | https://github.com/python/cpython/pull/106816/files |
|
pycore_fileutils.h
| https://github.com/python/cpython/pull/106816/files#diff-b419a047f587ec3afef8493e19dbfc142624bf278f3298bfc74729abd89e311d |
|
test_genericpath.py
| https://github.com/python/cpython/pull/106816/files#diff-daabfa1f7a578479d9ba61864808dca470581ecbae838c850734a033f851b2fb |
|
2023-08-14-23-11-11.gh-issue-106242.71HMym.rst
| https://github.com/python/cpython/pull/106816/files#diff-ed2531b10f63a282c32ce95449c31c8cf03f6d634658a899e5e25bdd5cc03438 |
|
posixmodule.c
| https://github.com/python/cpython/pull/106816/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791 |
|
fileutils.c
| https://github.com/python/cpython/pull/106816/files#diff-27e9033ac552bd8208213a2d5a0a294312e3918cd81c4da822ab32c382e392c4 |
| Include/internal/pycore_fileutils.h | https://github.com/python/cpython/pull/106816/files#diff-b419a047f587ec3afef8493e19dbfc142624bf278f3298bfc74729abd89e311d |
|
View file
| https://github.com/finnagin/cpython/blob/aecae846fff0a15585178d61cdc44cae1b91bb76/Include/internal/pycore_fileutils.h |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/106816/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/106816/files#diff-b419a047f587ec3afef8493e19dbfc142624bf278f3298bfc74729abd89e311d |
|
| https://github.com/python/cpython/pull/106816/files#diff-b419a047f587ec3afef8493e19dbfc142624bf278f3298bfc74729abd89e311d |
| Lib/test/test_genericpath.py | https://github.com/python/cpython/pull/106816/files#diff-daabfa1f7a578479d9ba61864808dca470581ecbae838c850734a033f851b2fb |
|
View file
| https://github.com/finnagin/cpython/blob/aecae846fff0a15585178d61cdc44cae1b91bb76/Lib/test/test_genericpath.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/106816/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/106816/files#diff-daabfa1f7a578479d9ba61864808dca470581ecbae838c850734a033f851b2fb |
|
| https://github.com/python/cpython/pull/106816/files#diff-daabfa1f7a578479d9ba61864808dca470581ecbae838c850734a033f851b2fb |
| Misc/NEWS.d/next/Library/2023-08-14-23-11-11.gh-issue-106242.71HMym.rst | https://github.com/python/cpython/pull/106816/files#diff-ed2531b10f63a282c32ce95449c31c8cf03f6d634658a899e5e25bdd5cc03438 |
|
View file
| https://github.com/finnagin/cpython/blob/aecae846fff0a15585178d61cdc44cae1b91bb76/Misc/NEWS.d/next/Library/2023-08-14-23-11-11.gh-issue-106242.71HMym.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/106816/{{ revealButtonHref }} |
| Modules/posixmodule.c | https://github.com/python/cpython/pull/106816/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791 |
|
View file
| https://github.com/finnagin/cpython/blob/aecae846fff0a15585178d61cdc44cae1b91bb76/Modules/posixmodule.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/106816/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/106816/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791 |
|
| https://github.com/python/cpython/pull/106816/files#diff-b5b7e4f5599916b2018e911ef423f9d3fd46cb71268e1a73c74a1c9ae2cb6791 |
| Python/fileutils.c | https://github.com/python/cpython/pull/106816/files#diff-27e9033ac552bd8208213a2d5a0a294312e3918cd81c4da822ab32c382e392c4 |
|
View file
| https://github.com/finnagin/cpython/blob/aecae846fff0a15585178d61cdc44cae1b91bb76/Python/fileutils.c |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/106816/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/106816/files#diff-27e9033ac552bd8208213a2d5a0a294312e3918cd81c4da822ab32c382e392c4 |
|
| https://github.com/python/cpython/pull/106816/files#diff-27e9033ac552bd8208213a2d5a0a294312e3918cd81c4da822ab32c382e392c4 |
|
| https://github.com/python/cpython/pull/106816/files#diff-27e9033ac552bd8208213a2d5a0a294312e3918cd81c4da822ab32c382e392c4 |
|
| https://github.com/python/cpython/pull/106816/files#diff-27e9033ac552bd8208213a2d5a0a294312e3918cd81c4da822ab32c382e392c4 |
|
| https://github.com/python/cpython/pull/106816/files#diff-27e9033ac552bd8208213a2d5a0a294312e3918cd81c4da822ab32c382e392c4 |
|
| https://github.com/python/cpython/pull/106816/files#diff-27e9033ac552bd8208213a2d5a0a294312e3918cd81c4da822ab32c382e392c4 |
|
| 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 |