summaryrefslogtreecommitdiffstats
path: root/Modules/_json.c
diff options
context:
space:
mode:
authorStanislav Zmiev <szmiev2000@gmail.com>2023-03-22 14:45:25 (GMT)
committerGitHub <noreply@github.com>2023-03-22 14:45:25 (GMT)
commit713df2c53489ce8012d0ede10b70950e6b0d8372 (patch)
tree8ef14b4352a308817169ae77533537b958aedef4 /Modules/_json.c
parentaf9c34f6ef8dceb21871206eb3e4d350f6e3d3dc (diff)
downloadcpython-713df2c53489ce8012d0ede10b70950e6b0d8372.zip
cpython-713df2c53489ce8012d0ede10b70950e6b0d8372.tar.gz
cpython-713df2c53489ce8012d0ede10b70950e6b0d8372.tar.bz2
GH-89727: Fix pathlib.Path.walk RecursionError on deep trees (GH-100282)
Use a stack to implement `pathlib.Path.walk()` iteratively instead of recursively to avoid hitting recursion limits on deeply nested trees. Co-authored-by: Barney Gale <barney.gale@gmail.com> Co-authored-by: Brett Cannon <brett@python.org>
Diffstat (limited to 'Modules/_json.c')
0 files changed, 0 insertions, 0 deletions