| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:febfb798-78d5-0773-f899-28eaf7caf212 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D4D2:2839F:116F9AA:1744D59:6969A9CD |
| html-safe-nonce | 5438877dd34af506bb99833b741d00edabeb33f6d591eb9b765af72222da2630 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEQyOjI4MzlGOjExNkY5QUE6MTc0NEQ1OTo2OTY5QTlDRCIsInZpc2l0b3JfaWQiOiIxMjg0NDg5MjIyMzczODc4MjIyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 16061872cbfafc8f46254ace0f52440a8207f6c007d6ad8d55857289e2e37ddf |
| hovercard-subject-tag | pull_request:1170961693 |
| 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/100347/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 | Use a stack to implement os.fwalk iteratively instead of recursively to avoid hitting recursion limits on deeply nested trees.
Similar to how this is done for os.walk in #99803
Issue: gh-89727 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7 |
| 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 | 124667f43168afb6c9c03b7c02eb5b1d2e1be3d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/100347/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F100347%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%2F100347%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/100347/files |
| Reload | https://github.com/python/cpython/pull/100347/files |
| Reload | https://github.com/python/cpython/pull/100347/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/100347/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/100347/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:iterative-os-fwalk | https://github.com/jonburdo/cpython/tree/iterative-os-fwalk |
|
Conversation
22
| https://github.com/python/cpython/pull/100347 |
|
Commits
31
| https://github.com/python/cpython/pull/100347/commits |
|
Checks
0
| https://github.com/python/cpython/pull/100347/checks |
|
Files changed
| https://github.com/python/cpython/pull/100347/files |
| Please reload this page | https://github.com/python/cpython/pull/100347/files |
|
gh-89727: Fix os.fwalk RecursionError on deep trees
| https://github.com/python/cpython/pull/100347/files#top |
|
Show all changes
31 commits
| https://github.com/python/cpython/pull/100347/files |
|
d9f6f44
fix os.walk RecursionError on deep trees
jonburdo Dec 19, 2022
| https://github.com/python/cpython/pull/100347/commits/d9f6f44f009282d12d1a8eb1dc480d0300bf537e |
|
61b8078
use _WalkAction enum
jonburdo Dec 19, 2022
| https://github.com/python/cpython/pull/100347/commits/61b8078a37a014d070b99fb9bfcfebb21b2f38ca |
|
d5e2042
Merge branch 'main' into iterative-os-fwalk
jonburdo Dec 19, 2022
| https://github.com/python/cpython/pull/100347/commits/d5e20420ae196b00bf45897a330984950ed38015 |
|
90c123b
fix formatting
jonburdo Dec 20, 2022
| https://github.com/python/cpython/pull/100347/commits/90c123ba387c65d044cd33db7d6e92f54f8f7f91 |
|
570818b
remove enum from os
jonburdo Dec 20, 2022
| https://github.com/python/cpython/pull/100347/commits/570818b0cf609935787431ed7e0b7cdc0f8d1f88 |
|
30aeed7
add blurb
jonburdo Dec 20, 2022
| https://github.com/python/cpython/pull/100347/commits/30aeed7fc6945e57946f6c7708546f04fcec7f04 |
|
55e17b8
gh-89727: Fix os.walk RecursionError on deep trees (#99803)
jonburdo Dec 19, 2022
| https://github.com/python/cpython/pull/100347/commits/55e17b83551db9414bd5418f577351333ff6292b |
|
f41cef6
gh-69929: re docs: Add more specific definition of \w (#92015)
slateny Dec 20, 2022
| https://github.com/python/cpython/pull/100347/commits/f41cef6705dd62bebd02505a671acefab949016c |
|
33ba6a5
gh-89051: Add ssl.OP_LEGACY_SERVER_CONNECT (#93927)
graingert Dec 20, 2022
| https://github.com/python/cpython/pull/100347/commits/33ba6a5800628af22fa7ecf00fc5601296849a10 |
|
f9b6796
gh-88211: Change lower-case and upper-case to match recommendations i…
tbwolfe Dec 20, 2022
| https://github.com/python/cpython/pull/100347/commits/f9b6796728684e242c795b23c0c8b04dedd7cbc1 |
|
77d160f
gh-100348: Fix ref cycle in `asyncio._SelectorSocketTransport` with `…
rkojedzinszky Dec 20, 2022
| https://github.com/python/cpython/pull/100347/commits/77d160fee528fa7666497ff35fa6b2e51675bf55 |
|
db820a2
gh-99925: Fix inconsistency in `json.dumps()` error messages (GH-99926)
fnesveda Dec 20, 2022
| https://github.com/python/cpython/pull/100347/commits/db820a20070359f93181471c553f07a743876829 |
|
c39ce63
Clarify that every thread has its own default context in contextvars …
pablogsal Dec 20, 2022
| https://github.com/python/cpython/pull/100347/commits/c39ce6305ede472a412ba52c276fdb1074e1bdc9 |
|
8d2befb
run test_walk_above_recursion_limit for fwalk
jonburdo Dec 20, 2022
| https://github.com/python/cpython/pull/100347/commits/8d2befbf48064809cafbfa762b33e45c02fe57b2 |
|
d29188e
set stack outside try-except in fwalk
jonburdo Dec 20, 2022
| https://github.com/python/cpython/pull/100347/commits/d29188e8fea033757b6ee8b4ae62ed7760c7c207 |
|
2cf7550
fix comments
jonburdo Dec 20, 2022
| https://github.com/python/cpython/pull/100347/commits/2cf7550aeb8de8a837e4ecf80e363e62ccba0ec5 |
|
f2cca94
Merge branch 'main' into iterative-os-fwalk
jonburdo Dec 20, 2022
| https://github.com/python/cpython/pull/100347/commits/f2cca949d32eeb97bb7d28e277d844ae26b22d09 |
|
af18a1d
change ValueError to AssertionError
jonburdo Dec 20, 2022
| https://github.com/python/cpython/pull/100347/commits/af18a1d882aeaac006b7d2eb9e077cd0f4548f8b |
|
9eedf9a
Merge branch 'main' into iterative-os-fwalk
jonburdo Mar 23, 2023
| https://github.com/python/cpython/pull/100347/commits/9eedf9a8cc0298d367f62803985fec3b0b648e71 |
|
5ee50c6
add more reliable file descriptor closing logic in os.fwalk
jonburdo Mar 23, 2023
| https://github.com/python/cpython/pull/100347/commits/5ee50c6d0c9b63f934cd4af49097beccea426cda |
|
f0f9330
use a separate fd_stack for simpler cleanup and error handling
jonburdo Mar 23, 2023
| https://github.com/python/cpython/pull/100347/commits/f0f9330f4c2a6bbb24957002f1442ca135022c37 |
|
ccfb955
Merge branch 'main' into iterative-os-fwalk
jonburdo Mar 23, 2023
| https://github.com/python/cpython/pull/100347/commits/ccfb955d6fed49c4995f32e67fe5fb111ff04eab |
|
598bdf9
run test_walk_above_recursion_limit with fwalk tests
jonburdo Mar 23, 2023
| https://github.com/python/cpython/pull/100347/commits/598bdf908ae91783d812edeeb6f1532e134f938a |
|
c158be3
Merge branch 'main' into iterative-os-fwalk
jonburdo Mar 24, 2023
| https://github.com/python/cpython/pull/100347/commits/c158be3187efc496bfcbf420208888f6a57c9312 |
|
6608a6a
make sure we don't close the same fd twice
jonburdo Mar 26, 2023
| https://github.com/python/cpython/pull/100347/commits/6608a6ad3eff2bc8882e66b40f993046453d6bbf |
|
d026146
revert to using a single stack instead of a separate ffd stack
jonburdo Mar 26, 2023
| https://github.com/python/cpython/pull/100347/commits/d026146a50eef6c2137b2bd9f2e333a83a093e63 |
|
762c03a
remove unused variable
jonburdo Mar 26, 2023
| https://github.com/python/cpython/pull/100347/commits/762c03a939a42b2b9776a9230a5e2212deeddb28 |
|
045fd88
get rid of unnecessary os._fwalk
jonburdo Apr 1, 2023
| https://github.com/python/cpython/pull/100347/commits/045fd8878f14226b9b6904ba12784e036f01a0fa |
|
f3f793a
change except clause to finally clause in os.fwalk
jonburdo Apr 1, 2023
| https://github.com/python/cpython/pull/100347/commits/f3f793a48634c1fe6f500e95f5f9bbed69c247e3 |
|
dfb9685
Merge branch 'main' into iterative-os-fwalk
AlexWaygood Apr 25, 2023
| https://github.com/python/cpython/pull/100347/commits/dfb9685db4ff263ca503240dc3dd2e8439db29f8 |
|
0ebc475
Merge branch 'main' into iterative-os-fwalk
erlend-aasland Jan 5, 2024
| https://github.com/python/cpython/pull/100347/commits/0ebc47506321cbb626475eb43c49537e2113ed05 |
|
Clear filters
| https://github.com/python/cpython/pull/100347/files |
| Please reload this page | https://github.com/python/cpython/pull/100347/files |
| Please reload this page | https://github.com/python/cpython/pull/100347/files |
|
os.py
| https://github.com/python/cpython/pull/100347/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431 |
|
test_os.py
| https://github.com/python/cpython/pull/100347/files#diff-5007f0845419916c8b0294481e2ee212ca36661d9843f86338ec42254645edfc |
|
2022-12-20-09-36-29.gh-issue-89727.FpprK3.rst
| https://github.com/python/cpython/pull/100347/files#diff-424e5756bd43996cab9270d990b4dd84593d6deac64ed98023cbb89ccadc05a5 |
| Lib/os.py | https://github.com/python/cpython/pull/100347/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431 |
|
View file
| https://github.com/jonburdo/cpython/blob/0ebc47506321cbb626475eb43c49537e2113ed05/Lib/os.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/100347/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/100347/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431 |
|
| https://github.com/python/cpython/pull/100347/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431 |
|
| https://github.com/python/cpython/pull/100347/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431 |
|
| https://github.com/python/cpython/pull/100347/files#diff-d2e8ad2f4746ac5fb230fa5a7345fd4332c56818489a2246472d38893aa82431 |
| Lib/test/test_os.py | https://github.com/python/cpython/pull/100347/files#diff-5007f0845419916c8b0294481e2ee212ca36661d9843f86338ec42254645edfc |
|
View file
| https://github.com/jonburdo/cpython/blob/0ebc47506321cbb626475eb43c49537e2113ed05/Lib/test/test_os.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/100347/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/100347/files#diff-5007f0845419916c8b0294481e2ee212ca36661d9843f86338ec42254645edfc |
|
| https://github.com/python/cpython/pull/100347/files#diff-5007f0845419916c8b0294481e2ee212ca36661d9843f86338ec42254645edfc |
| Misc/NEWS.d/next/Library/2022-12-20-09-36-29.gh-issue-89727.FpprK3.rst | https://github.com/python/cpython/pull/100347/files#diff-424e5756bd43996cab9270d990b4dd84593d6deac64ed98023cbb89ccadc05a5 |
|
View file
| https://github.com/jonburdo/cpython/blob/0ebc47506321cbb626475eb43c49537e2113ed05/Misc/NEWS.d/next/Library/2022-12-20-09-36-29.gh-issue-89727.FpprK3.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/100347/{{ revealButtonHref }} |
|
| 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 |