Skip to content

Latest commit

 

History

History
56 lines (27 loc) · 1.12 KB

PyIID.md

File metadata and controls

56 lines (27 loc) · 1.12 KB

PyIID

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

PyIID.__hash__

int = __hash__() Used when the hash value of an IID object is required

PyIID.__repr__

string = __repr__()

PyIID.__str__

string = __str__() Used whenever a string representation of the IID is required.