Next:
gethostbyaddr()
Up:
socket
Previous:
socket
Contents
Index
gethostname()
Returns the hostname:
>>> import socket >>> socket.gethostname() 'haspp23'