New submission from rbu <robert.buchh...@goodpoint.de>:

Similarly to how several pathlib file creation functions have an "exists_ok" 
parameter, we should introduce "missing_ok" that makes removal functions not 
raise an exception when a file or directory is already absent.

IMHO, this should cover Path.unlink and Path.rmdir.

Note, Path.resolve() has a "strict" parameter since 3.6 that does the same 
thing. Naming this of this new parameter tries to be consistent with the 
"exists_ok" parameter as that is more explicit about what it does (as opposed 
to "strict").

----------
components: Library (Lib)
messages: 314277
nosy: rbu
priority: normal
severity: normal
status: open
title: Path.unlink should have a missing_ok parameter
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33123>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to