On Sun, Jan 8, 2017 at 8:40 AM, CM <cmpyt...@gmail.com> wrote: > > This is candidate_text: match > <type 'str'> > <type 'str'> > False > > and, of course, doesn't enter that "do something" loop since apparently > candidate_text != 'match'...even though it seems like it does. > > So what's going on here? Why isn't a string with the content 'match' equal to > another string with the content 'match'?
What happens if you print the repr of each string? Or, if one of them truly is a literal, just print the repr of the one you got from win32com. ChrisA -- https://mail.python.org/mailman/listinfo/python-list