[python-win32] Weird ADSI hang.

Gabriel Genellina gagenellina at softlab.com.ar
Fri Oct 7 01:15:02 CEST 2005


At Thursday 6/10/2005 00:51, you wrote:

>import win32com.client
>
>def recurse(objstr):
>         for obj in win32com.client.GetObject(objstr):
>                 print "Digging into", obj.ADsPath, "class=" + obj.Class
>                 recurse(obj.ADsPath)
>
>print "At the start"
>print recurse("IIS://localhost/W3SVC")
>print "At the end"
>
>END CODE
>
>"At the end" does print and at that point it just hangs there.

Maybe it doesn't matter, but try removing the print statement on print 
recurse(...) since recurse() doesnt return anything

print "At the start"
recurse("IIS://localhost/W3SVC")
print "At the end"


Gabriel Genellina
Softlab SRL 



More information about the Python-win32 mailing list