New submission from Marco Rougeth <ma...@rougeth.com>: Path has the method `.rmdir()` for removing the directory, but it doesn't have anything if it correspond to a file.
The `os.remove` could be used here, but I think it should have a more appropriate/explicit name like `.rmfile()`. If it make sense, I'd be glad to work on it. ---------- messages: 314756 nosy: rougeth priority: normal severity: normal status: open title: Path-file objects does not have method to delete itself if its a file type: enhancement versions: Python 3.6, Python 3.7, Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33194> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com