Re: List comparison help please

2006-08-25 Thread Simon Forman
Bucco wrote: > Simon Forman wrote: > > > 1) Don't use "dir", "file", and "list" as variable names, those are > > already python built in objects (the dir() function, list type, and > > file type, respectively.) > > Thanks. My own stupidity on this one. > > > > 2) 'r' is the default for open(), omi

Re: List comparison help please

2006-08-20 Thread Bucco
Simon Forman wrote: > 1) Don't use "dir", "file", and "list" as variable names, those are > already python built in objects (the dir() function, list type, and > file type, respectively.) Thanks. My own stupidity on this one. > 2) 'r' is the default for open(), omit it. "self.flist = > open(

Re: List comparison help please

2006-08-20 Thread Simon Forman
Bucco wrote: > I am trying to compare a list of items to the list of files generated > by os.listdir. I am having trouble getting this to work and think I > may be going down the wrong path. Please let me know if hter is a > better way to do this. THis is what I have for my class so far: > > imp

Re: List comparison help please

2006-08-20 Thread Felipe Almeida Lessa
20 Aug 2006 14:47:14 -0700, Bucco <[EMAIL PROTECTED]>: > I am trying to compare a list of items to the list of files generated > by os.listdir. I am having trouble getting this to work and think I > may be going down the wrong path. Please let me know if hter is a > better way to do this. THis i

List comparison help please

2006-08-20 Thread Bucco
I am trying to compare a list of items to the list of files generated by os.listdir. I am having trouble getting this to work and think I may be going down the wrong path. Please let me know if hter is a better way to do this. THis is what I have for my class so far: import os, sys class Match