Christian Heimes added the comment:
Seems to work. I don't have root permission on the box so I can't actually test
if the function call succeeds.
% ./python
Python 3.4.0a0 (default:626a8e49f2a9, Jun 19 2013, 00:19:57)
[GCC 4.7.1] on aix7
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> socket.sethostname('python')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
PermissionError: [Errno 1] Not owner
----------
nosy: +christian.heimes
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue18259>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com