Many thanks to all the people who made suggestions for improvements (on this journal and elsewhere). It's much better due to this feedback. Some of the significant changes are:
- UUID objects are now immutable, hashable, and can be used as dictionary keys.
- The internal representation is now a single long integer, which is more efficient.
- You can convert a UUID to and from: a 16-byte string, a tuple of six integers, a string of 32 hex digits, a hyphenated string of hex digits, a URN, or a single long integer.
- The hardware address is obtained using Unix or Windows library calls if they're available, which is much faster and cheaper than spawning ifconfig or ipconfig.exe like it used to.