Re: Search or compai problem

2006-08-21 Thread Gabriel Genellina
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 None is

Re: Search or compai problem

2006-08-19 Thread Gabriel Genellina
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

Re: Search or compai problem

2006-08-19 Thread timgerr
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 how I do

Search or compai problem

2006-08-18 Thread Gallagher, Tim (NE)
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

Re: Search or compai problem

2006-08-18 Thread John Machin
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 respectively.

Re: Search or compai problem

2006-08-18 Thread timgerr
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 too easily misread