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: genericpath: _splitext returns '.ext', '' instead of '', '.ext'
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.2
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, optimix
Priority: normal Keywords: patch

Created on 2009-09-04 21:31 by optimix, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
genericpath_splitext.patch optimix, 2009-09-04 21:31
Messages (2)
msg92267 - (view) Author: Alexandru Munteanu (optimix) Date: 2009-09-04 21:31
Having a '.ogg' filename, _splitext returns '.ogg' as base and empty
extension. Probably it should return empty base and '.ogg' extension.

Lib/genericpath.py:99 - Why "skip all leading dots" ?

I attach a possible patch (with tests).
msg92268 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-09-04 21:58
Have a look at http://bugs.python.org/issue1115886.
History
Date User Action Args
2022-04-11 14:56:52adminsetgithub: 51089
2009-09-04 21:58:07benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg92268

resolution: works for me
2009-09-04 21:31:42optimixcreate