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.
- Used whenever a repr() is called for the object tp_repr
- Used when the hash value of an IID object is required tp_hash
- Used whenever a string representation of the IID is required. tp_str
CommentsNote that IID objects support the buffer interface. Thus buffer(iid) can be used to obtain the raw bytes. tp_as_buffer