hostid?

Noah noah at noah.org
Sat Oct 19 14:24:48 EDT 2002


"Lance" <lbrannma at cablespeed.com> wrote in message news:<ur2ok51jlan72f at corp.supernews.com>...
> I'd like to retrieve a computer's hostid. Does anyone know how to do this? 
> Lance

Do you mean hostname? If yes, then you do this:

    import socket
    print socket.gethostname()

Yours,
Noah



More information about the Python-list mailing list