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.

Title: pathlib with_suffix() should accept suffix not start with dot
Type: Stage:
Components: Library (Lib) Versions: Python 3.10, Python 3.9
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;


This should change suffix to ".jpg", not raising ValueError.
Date User Action Args
2022-04-11 14:59:41adminsetgithub: 87325
2021-02-08 02:09:56elbarkwoncreate