Message9663

Author Arfrever
Recipients Arfrever, stefan.richthofer, zyasoft
Date 2015-03-16.14:18:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426515497.81.0.738372726018.issue2292@psf.upfronthosting.co.za>
In-reply-to
Content
OSError should be raised for any non-symlink (e.g. directory or regular file):

$ python2.7 -c 'import os; print(os.readlink("/"))'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
OSError: [Errno 22] Invalid argument: '/'
$ python2.7 -c 'import os; print(os.readlink("/bin"))'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
OSError: [Errno 22] Invalid argument: '/bin'
$ python2.7 -c 'import os; print(os.readlink("/bin/ls"))'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
OSError: [Errno 22] Invalid argument: '/bin/ls'
$ jython2.7 -c 'import os; print(os.readlink("/"))'
None
$ jython2.7 -c 'import os; print(os.readlink("/bin"))'
None
$ jython2.7 -c 'import os; print(os.readlink("/bin/ls"))'
None
History
Date User Action Args
2015-03-16 14:18:17Arfreversetmessageid: <1426515497.81.0.738372726018.issue2292@psf.upfronthosting.co.za>
2015-03-16 14:18:17Arfreversetrecipients: + Arfrever, zyasoft, stefan.richthofer
2015-03-16 14:18:17Arfreverlinkissue2292 messages
2015-03-16 14:18:17Arfrevercreate