Author Sebastian.Kreft
Recipients Sebastian.Kreft, eric.araujo, serhiy.storchaka
Date 2012-12-13.18:00:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1355421615.67.0.014345141245.issue16664@psf.upfronthosting.co.za>
In-reply-to
Content
The docs don't say anything about it. However the code is there (docs bug probably). 

See the following lines in glob.py:
    57     if pattern[0] != '.':
    58         names = [x for x in names if x[0] != '.']
    59     return fnmatch.filter(names, pattern)

The documentation is even harder to follow.

The glob docs say:
"The pattern may contain simple shell-style wildcards a la fnmatch."

but the fnmatch docs say:
"Similarly, filenames starting with a period are not special for this module, and are matched by the * and ? patterns."


The posix standard states that "if a filename begins with a period ( '.' ), the period shall be explicitly matched"
(http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_13_03).
History
Date User Action Args
2012-12-13 18:00:15Sebastian.Kreftsetrecipients: + Sebastian.Kreft, eric.araujo, serhiy.storchaka
2012-12-13 18:00:15Sebastian.Kreftsetmessageid: <1355421615.67.0.014345141245.issue16664@psf.upfronthosting.co.za>
2012-12-13 18:00:15Sebastian.Kreftlinkissue16664 messages
2012-12-13 18:00:15Sebastian.Kreftcreate