[issue35538] splitext does not seems to handle filepath ending in .

Devika Sondhi report at bugs.python.org
Wed Dec 19 12:39:35 EST 2018


New submission from Devika Sondhi <devikas at iiitd.ac.in>:

posixpath.splitext('.blah.') returns ('.blah', '.') while the expectation was to return an empty extension at the end.

----------
messages: 332157
nosy: Devika Sondhi
priority: normal
severity: normal
status: open
title: splitext does not seems to handle filepath ending  in .
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35538>
_______________________________________


More information about the Python-bugs-list mailing list