From: Guido van Rossum Date: Wed, 2 Apr 1997 05:47:11 +0000 (+0000) Subject: New doc strings. X-Git-Tag: v1.5a1~234 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab096c91e2ec36dc64daf208b20a2cc846449015;p=thirdparty%2FPython%2Fcpython.git New doc strings. --- diff --git a/Lib/glob.py b/Lib/glob.py index bacaf183e1f6..990ffa3ada03 100644 --- a/Lib/glob.py +++ b/Lib/glob.py @@ -1,4 +1,4 @@ -# Module 'glob' -- filename globbing. +"""Filename globbing utility.""" import os import fnmatch @@ -6,6 +6,11 @@ import regex def glob(pathname): + """Return a list of paths matching a pathname pattern. + + The pattern may contain simple shell-style wildcards a la fnmatch. + + """ if not has_magic(pathname): if os.path.exists(pathname): return [pathname]