[New-bugs-announce] [issue43159] pathlib with_suffix() should accept suffix not start with dot
JiKwon Kim
report at bugs.python.org
Sun Feb 7 21:09:56 EST 2021
New submission from JiKwon Kim <elbarkwon at gmail.com>:
Currently pathlib with_suffix() function only accepts suffix starts with dot(".").
Consider this code;
some_pathlib_path.with_suffix("jpg")
This should change suffix to ".jpg", not raising ValueError.
----------
components: Library (Lib)
messages: 386612
nosy: elbarkwon
priority: normal
severity: normal
status: open
title: pathlib with_suffix() should accept suffix not start with dot
versions: Python 3.10, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43159>
_______________________________________
More information about the New-bugs-announce
mailing list