PyIID Object

A Python object, representing an IID/CLSID.
All pythoncom functions that return a CLSID/IID will return one of these objects. However, in almost all cases, functions that expect a CLSID/IID as a param will accept either a string object, or a native PyIID object.

Methods

__repr__
Used whenever a repr() is called for the object tp_repr 

__hash__
Used when the hash value of an IID object is required tp_hash 

__str__
Used whenever a string representation of the IID is required. tp_str 

Comments

Note that IID objects support the buffer interface. Thus buffer(iid) can be used to obtain the raw bytes. tp_as_buffer