This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: pathlib with_suffix() should accept suffix not start with dot
Type: Stage:
Components: Library (Lib) Versions: Python 3.10, Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: elbarkwon
Priority: normal Keywords:

Created on 2021-02-08 02:09 by elbarkwon, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg386612 - (view) Author: JiKwon Kim (elbarkwon) Date: 2021-02-08 02:09
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.
History
Date User Action Args
2022-04-11 14:59:41adminsetgithub: 87325
2021-02-08 02:09:56elbarkwoncreate