[docs] Perhaps True instead of False

Georg Brandl georg at python.org
Fri Jan 15 12:16:22 EST 2016


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Roberto,

the current wording is actually correct.  (You can create a broken
symlink yourself to check).

The purpose of `lexists` is to find out if "something" exists at the
path without following symlinks, so it is not necessary for the symlink
to point at something that exists.

cheers,
Georg

On 01/15/2016 06:02 PM, Roberto Filippi - AHS wrote:
> Hi all,
> 
> in https://docs.python.org/2/library/os.path.html
> 
> maybe that| " os.path.||lexists|(/path/)
> 
> Return |True| if /path/ refers to an existing path. Returns |True| for 
> broken symbolic links. Equivalent to |exists()| 
> <https://docs.python.org/2/library/os.path.html#os.path.exists> on
> platforms lacking |os.lstat()|
> <https://docs.python.org/2/library/os.html#os.lstat>.
> 
> "
> 
> should be " |os.path.||lexists|(/path/)
> 
> Return |True| if /path/ refers to an existing path. Returns *|True|False* 
> for broken symbolic links. Equivalent to |exists()| 
> <https://docs.python.org/2/library/os.path.html#os.path.exists> on
> platforms lacking |os.lstat()|
> <https://docs.python.org/2/library/os.html#os.lstat>.
> 
> "
> 
> Thanks for your work!


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlaZKWYACgkQN9GcIYhpnLCPggCfXJ3eCR/BOBfVDHIPm18ZMcGT
cmIAn0Zwm++iPTODyYY2c2hZGNYxgWbW
=KMks
-----END PGP SIGNATURE-----


More information about the docs mailing list