| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
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
There was a problem hiding this comment.
Sorry, I think we need a bit more code duplication in order to keep subclassing reliable.
Sorry, something went wrong.
|
@zooba would you mind if I tackle removing _scandir() in a follow-up PR? |
Sorry, something went wrong.
|
Sure. Provided it's not part of the public/subclassing interface, I'm happy. |
Sorry, something went wrong.
…CN0vv.rst Co-authored-by: Steve Dower <steve.dower@microsoft.com>
…ython#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>
| Back | FazBrowse Home | New Git URL |
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
📚 Documentation preview 📚: https://cpython-previews--127377.org.readthedocs.build/