On Mon, Feb 25, 2008 at 10:49 AM, Gary Herron <[EMAIL PROTECTED]> wrote: > > You expect this is creating a tuple (or so I see from your "in" test in > the following code), but in fact the parenthesis do *not* make a tuple. > If you look at ignored_dirs, you'll find it's just a string. It's the > presence of commas that signam a tuple. You need > > ignored_dirs = ( > r".\boost\include", # It's that comma that makes this a tuple. > ) >
Thanks for reminding me of this. I always forget that! Now that it is correctly doing *only* whole string matches, what if I want to make it do a substring compare to each string in my ignored_dirs tuple? Thanks.
-- http://mail.python.org/mailman/listinfo/python-list