Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

direct object access

Status
Not open for further replies.

TonH

MIS
Joined
May 3, 2006
Messages
2
Location
NL
is it possible to access walk through an object without having to iterate over it?

example:

Code:
import win32com.client

x = win32com.client.GetObject('LDAP://LDAP://DC=mydom,DC=com')

for y in x:
    print y

This returns other comObjects. Is it possible to access those objects without the iterate? I tried x[0] but it appears not to be a list.

Grtz,

tonH
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top