[issue12971] os.isdir() should contain skiplinks=False in arguments
Larry Hastings
report at bugs.python.org
Wed Jun 27 12:10:47 CEST 2012
Larry Hastings <larry at hastings.org> added the comment:
First: there's no chance this will go into 3.1, 3.2, or 3.3 at this point.
Second: I can assure you that switching to the l... version of a function and not following the last symlink is exactly what "follow_symlinks" is for. Please see the 3.3 documentation on follow_symlinks for more:
http://docs.python.org/3.3/library/os.html#follow-symlinks
Third: I think it's better to keep os.isdir() simple. Users who want more sophisticated use cases (what to do about symlinks, using a dir_fd parameter) should use os.stat(). So I'm -1 on this.
TBH I'm not sure this even warrants a documentation change ("for more functionality, use os.stat()").
----------
versions: -Python 3.1, Python 3.2, Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12971>
_______________________________________
More information about the Python-bugs-list
mailing list