Unregistering COM Classes

Pablo Prieto pablo.prieto at dulcesol.es
Tue Jun 27 09:18:24 EDT 2000


Hi evrybody there!

I've made a class for registering as a COM Server.
One of the functions is this:

	def getVersion(self):
		return "VERSION 2"


I've put this two sentences in a class 

if __name__=='__main__':
	import win32com.server.register
	win32com.server.register.UnregisterClasses(testAuto)
	win32com.server.register.UseCommandLine(testAuto)
	
So, I hoped that all the modifications to the class testAuto would be
updated.
But when I call from VB:
	Set o = CreateObject("Python.TestAuto")
	MsgBox o.getVersion

I get in the screen "VERSION 1"

That was the message in getVersion the first time I built the class.
So,
How can I tell python to rebuild with the new code without having to
define a new class?.

Thanks in advance.

Pablo.




More information about the Python-list mailing list