Hi Ralf,

> This would seem to still mis-characterizes patterns such as 'foo]'.

Yes, of course. But this function is by no means thought to correctly
catch all possible variations of wildcard patterns (one would have to
duplicate fnmatch for that). Its purpose is to give a rough estimate
on whether a given pattern is a fixed literal or a wildcard string.
It may, in same cases, incorrectly recognize the former to be the
latter, but never vice-versa.

Regards,
Sergey


Reply via email to