Larry Hastings <la...@hastings.org> added the comment: Maybe the correct fix for this is to change the interface?
os.listdir(path, *, dir_fd=None) Then we'll pick up the return type (str/bytes) from the path variable. It would make #15177 even easier too, should we go down that route. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15176> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com