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

R. David Murray report at bugs.python.org
Mon Mar 25 17:51:19 CET 2013


R. David Murray added the comment:

By the way, you could write this as:

  localist = os.listdir(path if path else '.')

----------

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


More information about the Python-bugs-list mailing list