COM Registration Attributes

Gordon McMillan gmcm at hypernet.com
Wed Dec 5 08:17:22 EST 2001


Bill Bell wrote:

> 
> "Python Programming on Win32" mentions that '_reg_options_' is a 
> "dictionary of additional keys to be written to the registry for the 
> COM object".
> 
> Has anyone an example or two, since I've been unable to find any?

class MyCOMServer:
    __reg_options_ = {'mykey':'myvalue'}
    ...

When registered, there will be a key 'mykey' sibling to 'InProcServer32' 
with a default value of 'myvalue'. I don't know if it will handle other 
types, or anything more complex.

-- Gordon
http://www.mcmillan-inc.com/





More information about the Python-list mailing list