SIGN IN SIGN UP

GH-125413: Revert addition of `pathlib.Path.scandir()` method (#127377)

Remove documentation for `pathlib.Path.scandir()`, and rename the method to
`_scandir()`. In the private pathlib ABCs, make `iterdir()` abstract and
call it from `_scandir()`.

It's not worthwhile to add this method at the moment - see discussion:
https://discuss.python.org/t/ergonomics-of-new-pathlib-path-scandir/71721

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
B
Barney Gale committed
8b3cccf3f9508572d85b0044519f2bd5715dacad
Parent: f4f5308
Committed by GitHub <noreply@github.com> on 12/5/2024, 9:39:43 PM