Guid
Windows globally unique identifier.
Constructor
Guid(value)
Parses a canonical GUID string or native Windows GUID packet.
Parameters:
| Name | Type | Description |
|---|---|---|
value |
Str|Bin |
GUID text or 16-byte native packet |
Returns: Guid
Errors:
- Raises
ValueErrorwhen the text or packet is malformed.
Methods
to_bin()
Returns the 16-byte native Windows GUID representation.
Returns: Bin
Operators
GUIDs support equality and hashing by value.