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
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(
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
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
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