[Python-Dev] * and ? in fnmatch
Fredrik Lundh" <firstname.lastname@example.org
Thu, 17 Feb 2000 16:06:04 +0100
> I have recently been playing with the fnmatch module, and learned that =
> and ? as considered by 'fnmatch.translate()' match *all* characters,
> including slashes, colons, backslashes -- in short, whatever happens =
> be "special" characters for pathnames on the current platform.
> In other words, "foo?bar.py" matches both "foo_bar.py" and =
this is documented behaviour:
Note that the filename separator ('/' on Unix) is not
special to this module. See module glob for pathname
expansion (glob uses fnmatch() to match filename=20
> def translate(pat,
sure looks like feature creep to me. is anyone actually
using this module directly?