At 04:15 PM 10/6/2005, Gabriel Genellina wrote:
>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

Oh but it does. It returns None. And print None does nothing.

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

_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to