| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:0c2190d4-ed46-d925-3075-988438f111f6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CC1E:87E17:26523DF:329BD21:696B1B32 |
| html-safe-nonce | 519e0e659fae67e861d67164f783f00f696a8b224ca7fa1cced6014e9cc12fb2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzFFOjg3RTE3OjI2NTIzREY6MzI5QkQyMTo2OTZCMUIzMiIsInZpc2l0b3JfaWQiOiI0NDAwMjcxOTE1ODE3MzExMDI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e1ed3d825f911f2270e9f9de4f1a93edfe716b162930017e514da910f707d588 |
| hovercard-subject-tag | pull_request:1183166493 |
| 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/100703/files |
| twitter:image | https://avatars.githubusercontent.com/u/79213343?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/79213343?s=400&v=4 |
| og:image:alt | Allow modification of the dirs returned by an os.walk entry to affect which subdirectories are walked, even when the modification occurs after iteration over dirs has begun. This was the behavior f... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/100703/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F100703%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub SparkBuild and deploy intelligent apps | https://github.com/features/spark |
| GitHub ModelsManage and compare prompts | https://github.com/features/models |
| 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 |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| 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/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%2F100703%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/100703/files |
| Reload | https://github.com/python/cpython/pull/100703/files |
| Reload | https://github.com/python/cpython/pull/100703/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/100703/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
33.9k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
71.1k
| 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.1k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
31
| https://github.com/python/cpython/projects |
|
Security
Uh oh!
There was an error while loading. Please reload this page.
| https://github.com/python/cpython/security |
| Please reload this page | https://github.com/python/cpython/pull/100703/files |
|
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
| 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 |
| jonburdo | https://github.com/jonburdo |
| python:main | https://github.com/python/cpython/tree/main |
| jonburdo:os-walk-dirs-editing | https://github.com/jonburdo/cpython/tree/os-walk-dirs-editing |
|
Conversation
15
| https://github.com/python/cpython/pull/100703 |
|
Commits
14
| https://github.com/python/cpython/pull/100703/commits |
|
Checks
0
| https://github.com/python/cpython/pull/100703/checks |
|
Files changed
| https://github.com/python/cpython/pull/100703/files |
| Please reload this page | https://github.com/python/cpython/pull/100703/files |
|
gh-89727: Fix os.walk to handle late editing of dirs
| https://github.com/python/cpython/pull/100703/files#top |
|
Show all changes
14 commits
| https://github.com/python/cpython/pull/100703/files |
|
2767f70
adopt old os.walk behavior to handle changes to dirs list after itera…
jonburdo Jan 3, 2023
| https://github.com/python/cpython/pull/100703/commits/2767f7065ff456e72521a268b3969e53b9b9e301 |
|
04a16a2
move stack logic to bottom of loop in os.walk
jonburdo Jan 3, 2023
| https://github.com/python/cpython/pull/100703/commits/04a16a22f5c7cd969c46e9a0c510e66f86bfc432 |
|
6b0465f
move scandir logic to bottom of loop
jonburdo Jan 3, 2023
| https://github.com/python/cpython/pull/100703/commits/6b0465ff4ffb03cd85b19f7a434c100e5bca4ee5 |
|
2ff800f
use for-loop to process dirs in bottom-up clause
jonburdo Jan 3, 2023
| https://github.com/python/cpython/pull/100703/commits/2ff800fef05a24af88b0dbb6a9c823c37a6f93ba |
|
072bdfb
Merge branch 'main' into os-walk-dirs-editing
jonburdo Jan 3, 2023
| https://github.com/python/cpython/pull/100703/commits/072bdfb4c137fa747cba0ca1e5d03a1d8777b4b8 |
|
41d7463
return if scandir_it fails on first value
jonburdo Jan 3, 2023
| https://github.com/python/cpython/pull/100703/commits/41d7463c5e8a873e8625422af8cee963d5414a57 |
|
d81ff45
add test for late modification of dirs in os.walk
jonburdo Jan 3, 2023
| https://github.com/python/cpython/pull/100703/commits/d81ff45aaafb43900dd09b9d6f180b77ea0c0780 |
|
431d47a
Merge branch 'main' into os-walk-dirs-editing
jonburdo Jan 3, 2023
| https://github.com/python/cpython/pull/100703/commits/431d47aa5a4cca58af0db9a3646874f9b37667be |
|
2829a7d
use while-else instead of while True, make variable names clearer
jonburdo Jan 3, 2023
| https://github.com/python/cpython/pull/100703/commits/2829a7dc11c2ba2e370e9a1d03464966d5019a9c |
|
b59358b
change os.walk docstring to say "traverse" instead of "recurse"
jonburdo Jan 3, 2023
| https://github.com/python/cpython/pull/100703/commits/b59358b46af47e2895abfbaf9169482b71173bd1 |
|
839f31e
fix scandir comment
jonburdo Jan 4, 2023
| https://github.com/python/cpython/pull/100703/commits/839f31eb34e5ecc4ddf5cb0060487483fb788513 |
|
1011e19
Merge branch 'main' into os-walk-dirs-editing
jonburdo Jan 4, 2023
| https://github.com/python/cpython/pull/100703/commits/1011e199529ccdbd778226574c379403708b2e5d |
|
80b7e82
split topdown and bottomup logic into separate functions for os.walk
jonburdo Jan 4, 2023
| https://github.com/python/cpython/pull/100703/commits/80b7e825bced8e9bd256d6f154822695fc363f75 |
|
70cb0c2
Merge branch 'main' into os-walk-dirs-editing
erlend-aasland Jan 5, 2024
| https://github.com/python/cpython/pull/100703/commits/70cb0c289f1c1f9d38de273bbceee353c26253f2 |
|
Clear filters
| https://github.com/python/cpython/pull/100703/files |
| Please reload this page | https://github.com/python/cpython/pull/100703/files |
| Please reload this page | https://github.com/python/cpython/pull/100703/files |
|
os.py
| https://github.com/python/cpython/pull/100703/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431 |
|
test_os.py
| https://github.com/python/cpython/pull/100703/files#diff-5007f0845419916c8b0294481e2ee212ca36661d9843f86338ec42254645edfc |
| Lib/os.py | https://github.com/python/cpython/pull/100703/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431 |
|
View file
| https://github.com/jonburdo/cpython/blob/70cb0c289f1c1f9d38de273bbceee353c26253f2/Lib/os.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/100703/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/100703/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431 |
|
| https://github.com/python/cpython/pull/100703/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431 |
|
| https://github.com/python/cpython/pull/100703/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431 |
| Please reload this page | https://github.com/python/cpython/pull/100703/files |
| Please reload this page | https://github.com/python/cpython/pull/100703/files |
|
| https://github.com/python/cpython/pull/100703/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431 |
|
| https://github.com/python/cpython/pull/100703/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431 |
|
| https://github.com/python/cpython/pull/100703/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431 |
| Lib/test/test_os.py | https://github.com/python/cpython/pull/100703/files#diff-5007f0845419916c8b0294481e2ee212ca36661d9843f86338ec42254645edfc |
|
View file
| https://github.com/jonburdo/cpython/blob/70cb0c289f1c1f9d38de273bbceee353c26253f2/Lib/test/test_os.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/100703/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/100703/files#diff-5007f0845419916c8b0294481e2ee212ca36661d9843f86338ec42254645edfc |
|
| https://github.com/python/cpython/pull/100703/files#diff-5007f0845419916c8b0294481e2ee212ca36661d9843f86338ec42254645edfc |
|
| https://github.com/python/cpython/pull/100703/files#diff-5007f0845419916c8b0294481e2ee212ca36661d9843f86338ec42254645edfc |
|
| https://github.com/python/cpython/pull/100703/files#diff-5007f0845419916c8b0294481e2ee212ca36661d9843f86338ec42254645edfc |
|
| https://github.com/python/cpython/pull/100703/files#diff-5007f0845419916c8b0294481e2ee212ca36661d9843f86338ec42254645edfc |
|
| 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 |