How to make a GUID with plain python
matt
matt at virtualspectator.com
Thu Dec 21 14:45:50 EST 2000
And the Mac address from a modem would be ?
The Mac address from an IDSN converter would be?
.....in a lot of instances Mac addresses are just not there !!!
On Thu, 21 Dec 2000, Michael Lausch wrote:
> gogo at bluedynamics.com (Georg Gogo. BERNHARD) writes:
>
> > Hello!
> >
> > I am looking for a way to create a global unique identifier / UUID
> > with python. I found a way to do this with ActivePython in Windows,
> > but I need a solution for other platforms, too. (In ActivePython one
> > can use >>> pythoncom.CreateGuid <<< to get a global unique
> > identifier.)
> >
> > The GUIDs use the MAC adress of the machine they are created at in
> > their algorithm. I start to think that this can not be done in python,
> > but I still hope that I am wrong in that point.
>
>
> use os.popen('/sbin/ifconfig -a','r') and regexp match the output for
> mac addresses.
>
> --
> "Reality is that which, when you stop believing in it, doesn't go away".
> -- Philip K. Dick
> --
> http://www.python.org/mailman/listinfo/python-list
--
More information about the Python-list
mailing list