[issue23076] path.glob("") fails with IndexError
Antony Lee
report at bugs.python.org
Thu Dec 18 00:59:40 CET 2014
New submission from Antony Lee:
glob.glob returns an empty list when passed an empty pattern as argument, but pathlib's Path.glob fails with IndexError. The first option seems more reasonable (or at least it should be a ValueError).
----------
components: Library (Lib)
messages: 232841
nosy: Antony.Lee
priority: normal
severity: normal
status: open
title: path.glob("") fails with IndexError
versions: Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23076>
_______________________________________
More information about the Python-bugs-list
mailing list