home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
c't freeware shareware 1997
/
CT_SW_97.ISO
/
mac
/
Software
/
entwickl
/
win95
/
pythowin.exe
/
DATA.3
/
win32com
/
util.py
< prev
next >
Wrap
Text File
|
1997-01-28
|
389b
|
16 lines
# Utility functions common to client and server.
def IIDToInterfaceName(iid):
"""
Converts an IID to an interface name. Used primarily for debugging.
iid -- An IID object.
Result -- Always a string - either an interface name, or '<Unregistered interface>'
"""
try:
return __.pythoncom.ServerInterfaces[iid]
except KeyError:
return "<Unregistered interface>"