RE: [Tutor] iterating through large dictionary

2005-03-22 Thread Christian Wyglendowski
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jeff Hi, Hey Jeff, I'm trying to print out all the attributes of a user account in active directory. I got a script from: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303348

Re: [Tutor] iterating through large dictionary

2005-03-22 Thread jeff
On Tue, 22 Mar 2005 15:47:19 -0600, Christian Wyglendowski [EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of jeff Hi, Hey Jeff, I'm trying to print out all the attributes of a user account in active directory. I

Re: [Tutor] iterating through large dictionary

2005-03-22 Thread Sean Perry
D:\Python24ad-attr.py Traceback (most recent call last): File D:\Python24\ad-attr.py, line 32, in ? for k, v in ad_dict(user): ValueError: too many values to unpack Try this instead ... I think it should help: code for k,v in ad_dict(user).items(): /code in 2.3 and newer, the preferred