At Saturday 19/8/2006 23:43, [EMAIL PROTECTED] wrote:
> >it is really lstusers (it is an L not a # 1), Some of the output from
> >print lstUsers has the output of None. I and trying to filter the None
> >out of the list. I come from a perl background and this is how I do
> >thing in perl
>
>
Gabriel Genellina wrote:
> At Saturday 19/8/2006 01:16, [EMAIL PROTECTED] wrote:
>
> >it is really lstusers (it is an L not a # 1), Some of the output from
> >print lstUsers has the output of None. I and trying to filter the None
> >out of the list. I come from a perl background and this is ho
At Saturday 19/8/2006 01:16, [EMAIL PROTECTED] wrote:
it is really lstusers (it is an L not a # 1), Some of the output from
print lstUsers has the output of None. I and trying to filter the None
out of the list. I come from a perl background and this is how I do
thing in perl
None is a uni
John Machin wrote:
> Gallagher, Tim (NE) wrote:
> > I am new to python and I want to compare 2 strings, here is my code:
> > [start]
> >
> > import active_directory
> > import re
> >
> > lstUsers = []
>
> Using "lst" or "l" as a variable name is bad news in any language; with
> many fonts they are
Gallagher, Tim (NE) wrote:
> I am new to python and I want to compare 2 strings, here is my code:
> [start]
>
> import active_directory
> import re
>
> lstUsers = []
Using "lst" or "l" as a variable name is bad news in any language; with
many fonts they are too easily misread as "1st" or "1" respe
I am new to python and I want to compare 2 strings, here is my code:
[start]
import active_directory
import re
lstUsers = []
users = active_directory.root()
for user in users.search ("sn='gallagher'"):
lstUsers.append(user.samAccountName)
print "--