[New-bugs-announce] [issue33194] Path-file objects does not have method to delete itself if its a file

Marco Rougeth report at bugs.python.org
Sat Mar 31 22:47:34 EDT 2018


New submission from Marco Rougeth <marco at 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 <report at bugs.python.org>
<https://bugs.python.org/issue33194>
_______________________________________


More information about the New-bugs-announce mailing list