[issue17545] os.listdir and os.path.join inconsistent on empty path

Thomas Fenzl report at bugs.python.org
Mon May 20 22:28:02 CEST 2013


Thomas Fenzl added the comment:

I also looked into creating a patch and now I'm not convinced about the solution. 

While os.path.join accepts an empty string, the functions is os (e.g. stat and friends, utime, chown don't. os.walk doesn't throw an Exception, but generates an empty iterator on ''.
So from a module perspective, things wouldn't get more consistent, but less. 

Any thoughts about how to proceed?

----------
nosy: +Thomas Fenzl

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17545>
_______________________________________


More information about the Python-bugs-list mailing list