Issue 1364: os.lstat documentation error (original) (raw)

Issue1364

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/45705

classification

Title: os.lstat documentation error
Type: Stage:
Components: Documentation Versions: Python 2.5

process

Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, giampaolo.rodola, python-dev
Priority: normal Keywords:

Created on 2007-10-31 03:11 by giampaolo.rodola, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (6)
msg56982 - (view) Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer) Date: 2007-10-31 03:11
os module documentation says about lstat(): > lstat( path) > > Like stat(), but do not follow symbolic links. > Availability: Macintosh, Unix. This is not true since os.lstat() is also available under Windows (tested under Win XP sp, Python 2.5). Moreover, wouldn't it be better having os.lstat() available on all platforms and turn it into an alias of os.stat on those platforms which do not support symbolic links?
msg57015 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-11-01 17:19
os.lstat is in fact an alias for os.stat on Windows. Corrected the docs in r58745, r58746 (2.5).
msg57020 - (view) Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer) Date: 2007-11-01 17:50
What about other platforms? I think it should be an alias for all platforms which does not support symbolic links, not only Windows.
msg57021 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-11-01 17:52
It is, and this is also documented that way now.
msg57023 - (view) Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer) Date: 2007-11-01 17:58
Thanks.
msg160804 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-05-16 05:07
New changeset 6480b23cdf48 by Julien Courteau in branch 'default': merge #1364 http://hg.python.org/distutils2/rev/6480b23cdf48
History
Date User Action Args
2022-04-11 14:56:27 admin set github: 45705
2012-05-16 05:07:33 python-dev set nosy: + python-devmessages: +
2007-11-01 17:58:32 giampaolo.rodola set messages: +
2007-11-01 17:52:34 georg.brandl set messages: +
2007-11-01 17:50:13 giampaolo.rodola set messages: +
2007-11-01 17:19:47 georg.brandl set status: open -> closedresolution: fixedmessages: + nosy: + georg.brandl
2007-10-31 03:11:12 giampaolo.rodola create