[New-bugs-announce] [issue10958] stat.S_ISLNK() does not wok!

Марк Коренберг report at bugs.python.org
Thu Jan 20 18:00:04 CET 2011

New submission from Марк Коренберг <socketpair at gmail.com>:

ipython session:

In [48]: qwe=os.stat('/usr/lib/libstdc++.so.6')
In [49]: qwe.st_mode
Out[49]: 33188
In [50]: stat.S_ISLNK(qwe.st_mode)
Out[50]: False
In [51]: stat.S_IFLNK & qwe.st_mode
Out[51]: 32768

'/usr/lib/libstdc++.so.6' is really symlink !!!

python in ubuntu 10.10 and RHEL 6.0. All the same.

components: Library (Lib)
messages: 126628
nosy: mmarkk
priority: normal
severity: normal
status: open
title: stat.S_ISLNK() does not wok!
type: behavior

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list