os.path.islink documentation error?

Giampaolo Rodola' gnewsg at gmail.com
Tue Nov 27 18:17:42 CET 2007


os.path.islink documentation says:

"Return True if path refers to a directory entry that is a symbolic
link. Always False if symbolic links are not supported."

It's not clear to me why it is mentioned the DIRECTORY term.
Shouldn't os.path.islink be used to just check if the *path* passed as
argument is a symlink?
In such case I would change it in:

"Return True if path refers to a symbolic link"



More information about the Python-list mailing list